| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | Honiewelle <honiewelle AT gmail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: coroutine library |
| Date: | Thu, 3 Jan 2008 23:54:42 -0800 (PST) |
| Organization: | http://groups.google.com |
| Lines: | 27 |
| Message-ID: | <3812a2e7-7ef9-428f-8561-f708e37956e0@i7g2000prf.googlegroups.com> |
| References: | <8c58f7b7-2f91-4eea-9992-7bd847b0aad8 AT s12g2000prg DOT googlegroups DOT com>, |
| <6aa86cca-11a9-426a-ae5e-d2c161a7dc7d AT i12g2000prf DOT googlegroups DOT com> | |
| <477DFCC5 DOT 32160 DOT 50E25C AT gerritvn DOT gpvno DOT co DOT za> | |
| NNTP-Posting-Host: | 61.8.228.116 |
| Mime-Version: | 1.0 |
| X-Trace: | posting.google.com 1199433282 3271 127.0.0.1 (4 Jan 2008 07:54:42 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | Fri, 4 Jan 2008 07:54:42 +0000 (UTC) |
| Complaints-To: | groups-abuse AT google DOT com |
| Injection-Info: | i7g2000prf.googlegroups.com; posting-host=61.8.228.116; |
| posting-account=aex66goAAAChGIzur3np6V2SxBId_WZm | |
| User-Agent: | G2/1.0 |
| X-HTTP-UserAgent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) |
| Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) | |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Jan 4, 3:30 pm, "Gerrit van Niekerk" <gerri DOT DOT DOT AT gpvno DOT co DOT za> wrote:
> On 3 Jan 2008 at 22:59, Honiewelle wrote:
>
> > I tried using the CLWP but I can't get it worked with my current OO C+
> > + source code.
>
> > I have source codes with .cc file extensions so that i can
> > use classes buti can't link it to CLWP which uses
> > .c as file extension. I tried to rename the .c extension to .cc
> > but it gives me errors when compiling.
>
> > I know that the compiler treats .c as a C source code and .cc as
> > a CPP source code, then how can I link these different source codes?
>
> > Got any ideas?
>
> Yes, use:
>
> extern "C" {
> extern int function1(char *ps); // sample only
> extern char *function2(int i); // sample only
>
> }
>
> in C++ for the prototypes of functions written in C.
thanks! i really appreciate it!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |