| Summary: | testfilesystem fails to link on Mac | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Joseph Carter <tjcarter> |
| Component: | file | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X 10.8 | ||
MacPorts was overriding my locally installed SDL and apparently the ABI has changed a bit in hg tip… |
I just ran make in my tests dir and got: $ make gcc -o testfilesystem testfilesystem.c -g -O2 -D_THREAD_SAFE -I/opt/local/include/SDL2 -I -DHAVE_OPENGL -DHAVE_SDL_TTF -L/opt/local/lib -lSDL2 -lSDL2_test Undefined symbols for architecture x86_64: "_SDL_GetBasePath", referenced from: _main in ccfXfB0A.o "_SDL_GetPrefPath", referenced from: _main in ccfXfB0A.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [testfilesystem] Error 1 I see that these functions are defined in src/filesystem/cocoa/SDL_sysfilesystem.m and I can see that the objects compiled therefrom do contain the strings. Calling convention issue maybe?