I'm porting a classic app to carbon. After all the struct accessor to function calls business, I get an error message about undefined symbols, (about thirty of them!) when it's time to link.
The project mixes C and C++, but here's the thing. As an example,
is declared in a header file. It's defined only once, in a C file, (other examples are compiled in C++ files) It's called only once, in another C file. Both files are included in the project; both the defining file and the calling file include the declaring header.
Honestly, what the heck does the compiler want from me?
This is with PB 2.1 on OS X.2.8 I just want to get this thing carbonated enough to use as a reference build, which I can run on X.4, while building a Cocoa equivalent. I hope that all makes sense; if it doesn't I blame white zinfandel.
The project mixes C and C++, but here's the thing. As an example,
Code:
#ifdef __cplusplus
extern "C" {
#endif
void HandleMenuChoice( short item );
#ifdef __cplusplus
}
#endif
is declared in a header file. It's defined only once, in a C file, (other examples are compiled in C++ files) It's called only once, in another C file. Both files are included in the project; both the defining file and the calling file include the declaring header.
Honestly, what the heck does the compiler want from me?
This is with PB 2.1 on OS X.2.8 I just want to get this thing carbonated enough to use as a reference build, which I can run on X.4, while building a Cocoa equivalent. I hope that all makes sense; if it doesn't I blame white zinfandel.