hey there again,
OK, the full story is I can get the Borland include
files to work, then they don't work, then taking out the path for the borland
files fixes the problem and I can compile again! Woot! Now, if I close down the
app and restart, again nothing will compile and its still using the same paths
as before for mingw.
Compiler output:
:\DOCUME~1\mobtek\LOCALS~1\Temp\cc2Haaaa.o: In function `add_num(void)':
//c/school~1/choice.cpp:51: undefined reference to `cout'
//c/school~1/choice.cpp:51: undefined reference to `ostream::operator<<(char
const *)'
//c/school~1/choice.cpp:52: undefined reference to `cin'
//c/school~1/choice.cpp:52: undefined reference to `istream::operator>>(int &)'
//c/school~1/choice.cpp:53: undefined reference to `cout'
//c/school~1/choice.cpp:53: undefined reference to `ostream::operator<<(char
const *)'
//c/school~1/choice.cpp:54: undefined reference to `cin'
//c/school~1/choice.cpp:54: undefined reference to `istream::operator>>(int &)'
//c/school~1/choice.cpp:58: undefined reference to `cout'
//c/school~1/choice.cpp:58: undefined reference to `ostream::operator<<(char
const *)'
//c/school~1/choice.cpp:58: undefined reference to `ostream::operator<<(int)'
C:\DOCUME~1\mobtek\LOCALS~1\Temp\cc2Haaaa.o: In function `add_num(void)':
//C/DEV-C_~1/Include/G__~1/iostream.h:106: undefined reference to `endl(ostream
&)'
C:\DOCUME~1\mobtek\LOCALS~1\Temp\cc2Haaaa.o: In function `mult_num(void)':
//c/school~1/choice.cpp:69: undefined reference to `cout'
//c/school~1/choice.cpp:69: undefined reference to `ostream::operator<<(char
const *)'
//c/school~1/choice.cpp:70: undefined reference to `cin'
//c/school~1/choice.cpp:70: undefined reference to `istream::operator>>(int &)'
//c/school~1/choice.cpp:71: undefined reference to `cout'
etc for each funtction.
So anyone got an idea, upgrade mingw? go to cygwin?
cheers peter van der male
|