Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » header not found by compiler
icon5.gif  header not found by compiler [message #13904] Fri, 01 February 2008 09:38 Go to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
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)
  • Attachment: Bonjour.zip
    (Size: 14.12KB, Downloaded 244 times)
Re: header not found by compiler [message #13905 is a reply to message #13904] Fri, 01 February 2008 10:31 Go to previous message
cbpporter is currently offline  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.
Previous Topic: How do I text overlay an image in a Upp::Button ?
Next Topic: Frames dissapearing and Buttons not drawing
Goto Forum:
  


Current Time: Fri Apr 26 20:46:41 CEST 2024

Total time taken to generate the page: 0.02245 seconds