C. Marcano
2010-01-06 00:11:38 UTC
Hi, everybody:
I am just starting to use cygwin/gcc/mingw environment. So, I am
a novice.
I am tryng to compile a simple C++ program, with g++. It compiles
without error, but when I try to 'g++ -o test test.o', the linker reports:
"Undefined reference to ***@16"
Searchinf for a solution in Internet, I have found some explanations,
saying that this problem has to do with linking different modules of
a projects in environments as Visual C++. Other say that it has
to do with the redirection of I/O in Windows But I didn't find
the solution to the case of being using gcc/mingw.
Trying to solve this error, I have found that linking with
-lmingw32 -lSDLMain -mwindows can work. I tried to do this,
but the linker said "ld: cannot find -lmingw32", I reinstalled
mingw isong cygwin-setup, but the same error still reports.
Also, I have tested linking qith the library libmingw32.a, which
didn't solve the problem either.
Could you tell me, please, what could be happening or refer to sites
containing the solution?
I am just starting to use cygwin/gcc/mingw environment. So, I am
a novice.
I am tryng to compile a simple C++ program, with g++. It compiles
without error, but when I try to 'g++ -o test test.o', the linker reports:
"Undefined reference to ***@16"
Searchinf for a solution in Internet, I have found some explanations,
saying that this problem has to do with linking different modules of
a projects in environments as Visual C++. Other say that it has
to do with the redirection of I/O in Windows But I didn't find
the solution to the case of being using gcc/mingw.
Trying to solve this error, I have found that linking with
-lmingw32 -lSDLMain -mwindows can work. I tried to do this,
but the linker said "ld: cannot find -lmingw32", I reinstalled
mingw isong cygwin-setup, but the same error still reports.
Also, I have tested linking qith the library libmingw32.a, which
didn't solve the problem either.
Could you tell me, please, what could be happening or refer to sites
containing the solution?