Problem with separate compiling and linking
Clark Sims
clarksimsgnu@my-Deja.com
Wed Jan 19 06:14:00 GMT 2000
OS: NT 4.0 SP5
Compiler: GCC 2.95, 19990728 release
Cygnus: 21.0 (0.8/1/1)
I wrote the simple program foo.cpp, with the makefile foo.mak. Under Cygnus/NT g++ -o foo foo.cpp, works fine. Under linux, make -f foo.mak, works fine. Under Cygnus/NT make -f foo.mak, produces the linker errors, listed in foo.err.
What am I doing wrong here? How do I make the linker "see", the missing references?
Thanks in Advance,
Clark Sims
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
#include <vector>
#include <iostream>
int main( void) {
std::vector<int> foovect;
int i;
for (i=0;i<10;i++) {
foovect.push_back( i);
std::cout << foovect[i] << std::endl;
}
return 0;
}
More information about the Cygwin
mailing list