Mail Archives: djgpp/1997/01/28/11:29:37
> ok, this must be something stupid i'm doing because i can't even find a reference to it in the faq :(
> i have 2 programs, one has a routine called wibble which is extern'd
> the other file consists of :
>
> int wibble(void);
>
> void main() {
> printf("%d \n",wibble());
> }
>
> when i try to compile this i get unresolved reference to wibble errors. :( from *both* pieces of code
> what on earth am i doing wrong? usually i would use extern int wibble(void); in this code and define the code in the other routine, but in this case the other routine is assembler and i don't know h
>
> regards,
> nik
We need more info. Are either of (or both) these being compiled
as C++ files? You might surround everything with
#ifdef __cplusplus
extern "C" {
#endif
and
#ifdef __cplusplus
}
#endif
and see if the problem disappears. Other than that, I can't think of
what might cause it.
David May, ID Card Administrator
Albuquerque TVI
- Raw text -