|
From: | Ivan Vučica |
Subject: | Re: GNUstep and SQLite3 |
Date: | Tue, 5 Jun 2018 19:39:10 +0100 |
Your problem was also present when invoking gcc manually. I expected you’d first try that. You compiled and linked as follows: admins-iMac:FirstAccess ahoesch$ gcc main.m -c -MMD -MP -DNeXT_Foundation_LIBRARY=1 -DNeXT_GUI_LIBRARY=1 -DNeXT_RUNTIME=1 -dynamic -fno-common -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fno-strict-aliasing -fnext-runtime -Wno-parentheses -Wno-import -I. -I/usr/local/include/ -F/Library/Frameworks/ -o /Build/FirstAccess/obj/FirstAccess.obj/main.m.o admins-iMac:FirstAccess ahoesch$ gcc -fnext-runtime -o /Build/FirstAccess/obj/FirstAccess /Build/FirstAccess/obj/FirstAccess.obj/main.m.o -ldl -lpthread -lz -lm -L/usr/local/lib/ -F/Library/Frameworks/ -framework Foundation -lm You could add -m32 or -m64 here as well. Or, Mac-style, -arch i386 or -arch x86_64. This depends on what your SQLite was built with.
To complement Wolfgang’s suggestion, set the following: - FirstAccess_CFLAGS - FirstAccess_OBJCFLAGS - FirstAccess_LDFLAGS
If I recall correctly (I probably last did this stuff ~2011, or 2013 at the latest), pass both "-arch i386” and "-arch x86_64” flags to both compiler and linker (i.e. add them to CFLAGS, CXXFLAGS, LDFLAGS when invoking configure). |
[Prev in Thread] | Current Thread | [Next in Thread] |