Originally posted by skada
View Post
Announcement
Collapse
No announcement yet.
Free COMPILERS and CROSS-COMPILERS for Linux and Windows.
Collapse
X
-
Errors when compiling w32api-3.11 (step 2)
I get redefinition errors when compiling w32api-3.11. Any suggestions on how to solve this? Am I the only one to get these errors?
Code:icd@debian:/opt/icd/w32api-3.11$ make make AS="i686-pc-mingw32-as" CC="gcc" CPPFLAGS="" CFLAGS="-O2 -g" CXXFLAGS="" AR="i686-pc-mingw32-ar" RANLIB="i686-pc-mingw32-ranlib" LD="i686-pc-mingw32-ld" DLLTOOL="i686-pc-mingw32-dlltool" TAR="tar" TARFLAGS="z" TARFILEEXT=".tar.gz" WINDRES="i686-pc-mingw32-windres" -C lib make[1]: Entering directory `/opt/icd/w32api-3.11/lib' gcc -c -O2 -g -I./../include -o shell32.o shell32.c gcc -c -O2 -g -I./../include -o scrnsave.o scrnsave.c In file included from /usr/include/sys/select.h:46, from /usr/include/sys/types.h:216, from /usr/include/stdlib.h:433, from ./../include/objbase.h:12, from ./../include/ole2.h:9, from ./../include/windows.h:114, from scrnsave.c:10: /usr/include/bits/time.h:70: error: redefinition of ?struct timeval? In file included from /usr/include/sys/types.h:216, from /usr/include/stdlib.h:433, from ./../include/objbase.h:12, from ./../include/ole2.h:9, from ./../include/windows.h:114, from scrnsave.c:10: /usr/include/sys/select.h:78: error: conflicting types for ?fd_set? ./../include/winsock2.h:64: error: previous declaration of ?fd_set? was here /usr/include/sys/select.h:112: error: conflicting types for ?select? ./../include/winsock2.h:632: error: previous declaration of ?select? was here make[1]: *** [scrnsave.o] Error 1 make[1]: Leaving directory `/opt/icd/w32api-3.11/lib' make: *** [lib] Error 2 icd@debian:/opt/icd/w32api-3.11$
Comment
-
-
Problem using the crosscompiler in windows
I followed all the steps in the guide and everything seemed to work just fine. After copying the mingw folder to my windows c:\ directory, however, I found that the compiler is unable to locate both headers and libs. Compiling a simple hello world program like this (added paths, else, it fails even earlier):
WindowsCMD: i686-pc-linux-gnu-gcc -IC:\mingw\include -LC:\mingw\lib -o hello main.c
results in:
\mingw\lib\gcc\i686-pc-linux-gnu\4.1.1\..\..\..\..\i686-pc-linux-gnu\bin\ld.exe: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Any suggestions?
Comment
-
I have never needed to set CC before running w32api-3.11's configure. Configure usually does this for you.
You have to tell windows gcc exactly where all the libraries (I don't remember if this included the C libraries) are or you get mysterious errors like the one you point out.
Unfortunately my box with the windows partition has died so I cannot check exactly what worked.
I had lots of trouble with paths and libraries.
Comment
-
Finally =)
Originally posted by Jade View PostI have never needed to set CC before running w32api-3.11's configure. Configure usually does this for you.
Originally posted by Jade View PostYou have to tell windows gcc exactly where all the libraries (I don't remember if this included the C libraries) are or you get mysterious errors like the one you point out.
Originally posted by Jade View PostI had lots of trouble with paths and libraries.
Comment
Comment