Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i fix my CC linker?

Status
Not open for further replies.

JaybOt

Programmer
Apr 18, 2001
101
GB
Hi guys,

Long time no see. I have a strange, but no doubt common problem. I have been on a break from C for a while, been working with C++. I wanted to modify an old program i wrote in C only to find the when i complied it it gave me an error:

iomanip: No such file or directory

Now, This never used to happen. The original executable still works but when i recompile the code (for any unchanged program) I get errors relating to my #include directives. The files are there cos i have used 'find' to locate them:

/usr/include/g++/iomanip

So my question is, if my link to my 'include' directory has changed, how can i change it back, or make C look in the correct place for my #inlcude files, and how can i find out where it's looking now?

Thanks in advance.

JayBot [afro]
"Always know what you say, but don't always say what you know!"
 
You could always supply an additional -I/usr/include/g++ when you compile the program. //Daniel
 
I assume you are now compiling with g++ rather than gcc. It's exactly the error you'd get if you tried to compile using gcc.
 
Of course, what an idiot i am. I actually have some file witten in 'c' and some in 'c++'. I was trying to compile a C++ file using 'cc'.

Thank you both for you help.

Regards, JayBot[afro] "Always know what you say, but don't always say what you know!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top