You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot seem to make Retro68 link a code fragment against a system library other than InterfaceLib. Could you please tell me why my example doesn't build?
$ cat testapp.c
#include <DriverSynchronization.h>
int main(int argc, char **argv) {
SynchronizeIO();
return 0;
}
$ powerpc-apple-macos-gcc -c -o testapp.o testapp.c
$ powerpc-apple-macos-gcc -lDriverServicesLib -o testapp testapp.o
ld: testapp.o:testapp.c:(.pr+0x24): undefined reference to `.SynchronizeIO'
collect2: error: ld returned 1 exit status
I know that the linker is paying some attention to the -l argument because passing -lNonexistentLibraryName causes a different error.
Thanks!
The text was updated successfully, but these errors were encountered:
The "-lDriverServicesLib" argument must go at the end of the GCC command line. This "dependency last" behaviour comes from GCC, and is not specific to Retro68.
I cannot seem to make Retro68 link a code fragment against a system library other than InterfaceLib. Could you please tell me why my example doesn't build?
I know that the linker is paying some attention to the
-l
argument because passing-lNonexistentLibraryName
causes a different error.Thanks!
The text was updated successfully, but these errors were encountered: