On Dec 12, 2003, at 8:08 AM, Maya wrote:
> I am using FOX version = FOX_MAJOR 1, FOX_MINOR 1, FOX_LEVEL 30.
> When compiling I get this message:
>
> -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1"
> -I"C:/cygwin/usr/include/c++/3.3.1/backward"
> -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin"
> -I"C:\DEV-CPP\\include\fox"
> windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O
> coff
> Option -I is deprecated for setting the input format, please use -J
> instead.
> g++.exe Templates/main.o Project1_private.res -o "Project1.exe"
> -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox" -mwindows -lfox -lwinspool
> -lwsock32 -lpng -ltiff -ljpeg -lz
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/
> ld: cannot find -lfox collect2: ld returned 1 exit status
> make: *** [Project1.exe] Error 1
> Execution terminated
>
> I installed fox using Fox.devpak, what else should I do?
The FOX library name is usually spelled "libFOX.*", with uppercase
letters for the "FOX" part. The link line that you showed appears to be
looking for a "libfox.*", where the "FOX" part is spelled with
lowercase letters.
You probably need to check the list of libraries linked into your
application (however that is done in Dev-C++) and change the spelling
of that library from "fox" to "FOX".
|