Search found 4 matches
- February 1st, 2012, 2:52 pm
- Forum: SDK Questions
- Topic: Updated MacOS X SDK?
- Replies: 6
- Views: 8689
Re: Updated MacOS X SDK?
There's not much to play with; what I was testing with was: #include <stdio.h> #include <sys/types.h> #include <stdint.h> #include "PM3CsafeCP.h" #define hibyte(x) (unsigned char)(x>>8) #define lobyte(x) (unsigned char)(x & 0xFF) int main( void ) { uint16_t ver; ver = tkcmdsetCSAFE_get_dll_version()...
- June 2nd, 2011, 5:38 pm
- Forum: SDK Questions
- Topic: Updated MacOS X SDK?
- Replies: 6
- Views: 8689
Re: Updated MacOS X SDK?
The symbol table you've included indicates that the library was compiled with C++ name mangling, but you're using GCC with a .c extension. If you switch GCC to C++ mode it should link successfully. In other words, it's a compiler problem not an arch problem. Oh, very good. I modified the build to u...
- May 19th, 2011, 1:27 pm
- Forum: SDK Questions
- Topic: Updated MacOS X SDK?
- Replies: 6
- Views: 8689
Re: Updated MacOS X SDK?
If only... gcc -arch i386 -I. -o test.o -c test.c gcc -arch i386 -o test test.o libPM3CsafeCP.a Undefined symbols for architecture i386: "_tkcmdsetCSAFE_get_dll_version", referenced from: _main in test.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status I think it has...
- May 11th, 2011, 11:52 pm
- Forum: SDK Questions
- Topic: Updated MacOS X SDK?
- Replies: 6
- Views: 8689
Updated MacOS X SDK?
The current SDK's libraries were compiled as ppc/i386 binaries, so I can't use them under MacOS 10.6: gcc -I. -o test.o -c test.c gcc -o test test.o libPM3CsafeCP.a ld: warning: ignoring file libPM3CsafeCP.a, missing required architecture x86_64 in file Undefined symbols for architecture x86_64: "_t...