Subject: | |
From: | |
Reply To: | |
Date: | Thu, 19 Apr 2001 09:07:49 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
You need to declare them as having "C" instead of "C++" linkage
e.g.
extern "C" {
void dbopen(char *, char *, short *, struct dbstat *);
}
If you are using a header file that was designed for C, you can include it
like this:
extern "C" {
#include <image.h>
}
Or, if it's your own header file, you can define it so it can be used with
both C and C++:
#ifdef __cplusplus
extern "C" {
#endif
/* declarations ... */
#ifdef __cplusplus
} // end extern "C"
#endif
----- Original Message -----
From: "Wayne WS" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, April 19, 2001 4:08 AM
Subject: gcc enresolved externals
> I am trying to call the Turbo Image intrinsics from gcc but i get
unresoled
> externals. Heres the dump.
>
> UNRESOLVED EXTERNALS: dbclose__FPvT0PsT0 (LDRERR 512)
> UNRESOLVED EXTERNALS: dbexplain__FPv (LDRERR 512)
> UNRESOLVED EXTERNALS: dbopen__FPvT0PsT0 (LDRERR 512)
>
> Heres my compile command "gcc turbodb.cpp -o turbodb"
>
> Wayne WS
> Newmed IT
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|