Home » U++ Library support » U++ Widgets - General questions or Mixed problems » header not found by compiler
|
Re: header not found by compiler [message #13905 is a reply to message #13904] |
Fri, 01 February 2008 10:31 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
bonami wrote on Fri, 01 February 2008 10:38 | d:\work\MyApps\Bonjour\example.c:1:18: error: string: No such file or directory
how can <string> not be found? (to simplify it, i've commented all souce body out)
|
Well, the file in which you are including <string> is a C file. I tried either including <string.h>, either changing the extension to .cpp. Both lead to successful compile.
I'm not sure if standard headers which don't end in h are properly set up to be included in C programs. It is a C++ standard anyway.
|
|
|
Goto Forum:
Current Time: Mon May 13 12:07:23 CEST 2024
Total time taken to generate the page: 0.02316 seconds
|