954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

File Not Found in gcc GNUstep

Hi guys,

I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell:

[CODE =c]$ gcc -lobjc hello.m -o hello[/CODE]

and error given was:

hello.m:9:25: fatal error: foundation.h no such file or directory


I am using GNUstep on windows xp, having installed all the components needed. I know and have seen that header files are present. Please someone can guide me how can I locate those files? Or how should i give command to locate files myself? Is there any other possible way that I can permanently tell that in this folder header files are located.

Please help me. Thanks a lot in adavnce :(

great_learner
Newbie Poster
23 posts since Apr 2010
Reputation Points: 10
Solved Threads: 3
 

I found out problem and figured out solution for this. Actually I had installed GNUstep sys with cygwin thats why compiler could not figured out the correct directory. My installation was incorrect. So I uninstalled all and reinstalled:

GNUstep core 0.29.0
GNUstep msys 0.29.0
GNUstep devel 1.4.0
and now everything is going fine.

More help on installation can be get from here

great_learner
Newbie Poster
23 posts since Apr 2010
Reputation Points: 10
Solved Threads: 3
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: