RSS Forums RSS
Please support our C advertiser: Programming Forums
Views: 565 | Replies: 1
Reply
Join Date: Jan 2006
Location: Israel
Posts: 37
Reputation: YoTaMiX is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
YoTaMiX YoTaMiX is offline Offline
Light Poster

Help gcc problem with standard C

  #1  
Apr 23rd, 2006
Evening

I am trying to run a makefile on a program i wrote.
in Borland C it runs smoothly .
after running the makefile - all sorts of error appear which i do not understand.
i am adding the files (program + header + error DOC ) .

Makefile as written :

hw_2 : ex.o main.o
gcc -o hw_2 ex.o main.o
ex.o : hw2head.c hw2head.h
gcc -c -x c hw2head.c
main.o : hw2cpy.c hw2head.h
gcc -c -x c hw2cpy.c[


Thank you in advance ,

Yotam , Israel.
Attached Files
File Type: c hw2head.c (2.4 KB, 1 views)
File Type: h hw2head.h (700 Bytes, 1 views)
File Type: doc yotamix.doc (22.5 KB, 2 views)
File Type: c hw2cpy.c (1.7 KB, 1 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,639
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 986
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: gcc problem with standard C

  #2  
Apr 23rd, 2006
why doesn't hw2head.c contain any includes? Add hw2head.h to the top of hw2head.c and that will probably fix all (or most) of the problems.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:56 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC