Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » can not include defined file .h
can not include defined file .h [message #699960] Fri, 22 July 2011 16:02 Go to next message
Dang Hieu is currently offline Dang HieuFriend
Messages: 5
Registered: July 2011
Junior Member
i getting stuck this problem,
//i made file .h 
#include<structs.h>
//and then create file .c (same folder project) 
structs.c
// i include .h into .c but i got this err when build
fatal error: structs.h: No such file or directory 



thanks all!
Re: can not include defined file .h [message #700632 is a reply to message #699960] Sat, 23 July 2011 20:18 Go to previous messageGo to next message
Don Wilde is currently offline Don WildeFriend
Messages: 7
Registered: July 2011
Junior Member
You need to use #include "structs.h" when adding a programmer-designed .h file. The < > construct is only for standard include files, or, rather, for files included in standard locations such as /usr/include.

This should get you going. Have fun! Very Happy
Re: can not include defined file .h [message #701104 is a reply to message #700632] Sun, 24 July 2011 16:24 Go to previous message
Dang Hieu is currently offline Dang HieuFriend
Messages: 5
Registered: July 2011
Junior Member
thanks Don Wilde Very Happy
Previous Topic:A problem in programming in C
Next Topic:Managed make project won't update
Goto Forum:
  


Current Time: Fri Apr 26 20:08:00 GMT 2024

Powered by FUDForum. Page generated in 0.03212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top