Re: crosscompile Linux-Windows



Am Mittwoch, den 23.03.2005, 20:28 +0100 schrieb Cedric Gustin:
> you might want to install the mingw32, mingw32-binutils and
> mingw32-runtime packages, then build your application with mingw32-g++,

that was no Problem:
i586-mingw32msvc-g++ -g -Wall `pkg-config gtkmm-2.4 --cflags` -c -o
file.o file.cc
all the files were compiled this way...

> and link (with mingw32-ld !) against the import libraries that are part
> of the gtkmm win32 installer.

that didn't worked:
i586-mingw32msvc-ld *.o -o file.exe -L/wine/gtk/lib/ -lgtkmm-2.4
-latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0
-lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv 

i586-mingw32msvc-ld: warning: cannot find entry symbol _mainCRTStartup;
defaulting to 00401000
getter.o: In function `getc':
/usr/lib/gcc/i586-mingw32msvc/3.4.2/../../../../i586-mingw32msvc/include/stdio.h:259: undefined reference to `_filbuf'
file.o: In function `Z3mpgP6_iobuf':
/home/ben/src/file/file.cc:53: undefined reference to `printf'
/home/ben/src/file/file.cc:58: undefined reference to `fseek'
/home/ben/src/file/file.cc:61: undefined reference to `fseek'
/home/ben/src/file/file.cc:63: undefined reference to `ftell'
/home/ben/src/file/file.cc:64: undefined reference to `printf'

so I tried some options like:
-L/wine/Dev-Cpp/lib -lstdc++

with no effect...
What did I do wrong?

Ben (running Debian unstable, if this Info helps anyone ;))




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]