Thanks a lot,

Now I manage to compile my file but I have a problem when liking, apparently ld can't find any library I give it:

For example I copied the libcrypt32.a from <migwdir>/lib to my  directory and tried to compile (I'm using cygwin) :
 
$ ls *.c *.o *.a
ls: *.o: No such file or directory
test.c  libcrypt32.a 
$ g++ -oaddcert.o -c -Wno-deprecated addcert.c
$ ls *.c *.o *.a
test.c  test.o libcrypt32.a 
$ g++ -otest.exe -Wno-deprecated -L. -l./libcrypt32.a test.c

c:\mingw1.1\bin\..\lib\gcc-lib\mingw32\3.1\..\..\..\..\mingw32\bin\ld.exe: cannot find -l./libcrypt32.a

Any help ??

Eric.


Oscar Fuentes wrote:
Eric Chastan <eric.chastan@netcelo.com> writes:

  
I'am just begining using mingw and I have the following error when I
try to link my programm:

g++ -oess.exe -Wno-deprecated ess.c
c:\mingw1.1\bin\..\lib\gcc-lib\mingw32\3.1\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lmingwex

??
I tried to find a file named *mingwex* within my mingw directory but
there is no such file.
    

Are you using gcc 3.1, by chance? If the answer is yes, you need to
download the libmingwex.a file available on the SF download are, as
explained by the MinGW gcc 3.1 release notes.

If you are using gcc 2.95.x, download the latest MinGW runtime
package. It should contain the necessary files.

The SourceForge download page, as you probably know, is:

http://sourceforge.net/project/showfiles.php?group_id=2435