You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2011-04-12 20:06:57
- Marqqs
- Member
- Registered: 2011-01-01
- Posts: 724
Compiling a program on Linux with MinGW for Windows
Hi!
I just tried to compile a program with MinGW. This usually works fine, but this time I needed some functions for data compression. Therefore I tried the option "-lz" (for zlib). After this, I got error message that the compile did not find the appropriate header files.
Does anybody know what to do?
Offline
#2 2011-04-16 21:30:52
- Marqqs
- Member
- Registered: 2011-01-01
- Posts: 724
Re: Compiling a program on Linux with MinGW for Windows
Hello again!
Now, the compiler finds the include file "zlib.h" (I had to copy it into /usr/i586-mingw32msvc/include).
But, unfortunately, I get the message:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lz
Any ideas?
Offline