Joshy
fbc test01.bas -x bin/win32/test01.exe
or
fbc test01.bas -x bin/win64/test01.exe
...
tetsted on Windows XP 32-bit, Windows 10 64-bit and Linux Ubuntu and Slackware 64-bit.
here are how I create the working import libraries for win32:
Code: Select all
d:\FreeBASIC\bin\win32\dlltool.exe -d csfml-audio-2.def -l libcsfml-audio-2.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d csfml-graphics-2.def -l libcsfml-graphics-2.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d csfml-network-2.def -l libcsfml-network-2.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d csfml-system-2.def -l libcsfml-system-2.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d csfml-window-2.def -l libcsfml-window-2.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d libsndfile-1.def -l liblibsndfile-1.dll.a
d:\FreeBASIC\bin\win32\dlltool.exe -d openal32.def -l libopenal32.dll.a
pause
Code: Select all
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d csfml-audio-2.def -l libcsfml-audio-2.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d csfml-graphics-2.def -l libcsfml-graphics-2.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d csfml-network-2.def -l libcsfml-network-2.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d csfml-system-2.def -l libcsfml-system-2.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d csfml-window-2.def -l libcsfml-window-2.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d libsndfile-1.def -l liblibsndfile-1.dll.a
d:\FreeBASIC\bin\win64\dlltool.exe -m i386:x86-64 --as-flags --64 -d openal32.def -l libopenal32.dll.a
pause