User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,846 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 2081 | Replies: 11 | Solved
Reply
Join Date: Sep 2007
Posts: 144
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
cwarn23 cwarn23 is offline Offline
Junior Poster

c Compiler (Not C++)

  #1  
Oct 5th, 2007
I have found a program and tried using 'DEV C++' but it only reported an error report. I later then discovered that is was because 'DEV C++' used C++ when the code was designed for just plane C. I have searched the web and this forum but only found two relevant threads from this forum (as shown below):
http://www.daniweb.com/forums/showth...ght=c+compiler
http://www.daniweb.com/forums/showth...ght=c+compiler
However, this still does not answer my question. And that is where to find a FREE or cheap compiler which compiles only 'C' code and not C++.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: c Compiler (Not C++)

  #2  
Oct 5th, 2007
DEV C++ compiles C or C++ just fine. What is the reported error ?

The links you posted give me a 404 page not found error.
Last edited by hollystyles : Oct 5th, 2007 at 4:45 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Sep 2007
Posts: 144
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
cwarn23 cwarn23 is offline Offline
Junior Poster

Re: c Compiler (Not C++)

  #3  
Oct 5th, 2007
Below is the error:
# Project: Project1
# Makefile created by Dev-C++ 4.9.8.0

CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES = encoder7_private.res
OBJ = "D:/Program Files/Dev-Cpp/Templates/encoder.o" $(RES)
LINKOBJ = "D:/Program Files/Dev-Cpp/Templates/encoder.o" $(RES)
LIBS = -L"D:/Program Files/Dev-Cpp/lib" -mwindows
INCS = -I"D:/Program Files/Dev-Cpp/include"
CXXINCS = -I"D:/Program Files/Dev-Cpp/include/c++" -I"D:/Program Files/Dev-Cpp/include/c++/mingw32" -I"D:/Program Files/Dev-Cpp/include/c++/backward" -I"D:/Program Files/Dev-Cpp/include"
BIN = encoder7.exe
CXXFLAGS = $(CXXINCS) -ansi -traditional-cpp -w -fdollar-in-identifiers -g3
CFLAGS = $(INCS) -ansi -traditional-cpp -w -fdollar-in-identifiers -g3

.PHONY: all all-before all-after clean clean-custom

all: all-before encoder7.exe all-after


clean: clean-custom
rm -f $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
$(CPP) $(LINKOBJ) -o "encoder7.exe" $(LIBS)

"D:/Program Files/Dev-Cpp/Templates/encoder.o": D:/Program\ Files/Dev-Cpp/Templates/encoder.c
$(CC) -c "D:/Program Files/Dev-Cpp/Templates/encoder.c" -o "D:/Program Files/Dev-Cpp/Templates/encoder.o" $(CFLAGS)

encoder7_private.res: encoder7_private.rc
$(WINDRES) -i encoder7_private.rc -I rc -o encoder7_private.res -O coff

------------------------------
and it says [Build Error] multiple target patterns. And for the links above (which I have just checked, the way to get to the is be searching this forum for 'c compiler' (in threads) and they are in the first 3 pages.
Last edited by cwarn23 : Oct 5th, 2007 at 4:52 am. Reason: slight mistake
Reply With Quote  
Join Date: Sep 2007
Posts: 144
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
cwarn23 cwarn23 is offline Offline
Junior Poster

Re: c Compiler (Not C++)

  #4  
Oct 5th, 2007
One of the things that Dev C++ gets mixed up with is when you use a code like:
#include "../encoder.h"
It gets mixed up with the .h
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: c Compiler (Not C++)

  #5  
Oct 5th, 2007
Ok I'm not too sure. But this might have something to do with dependancy. Is there more than 1 makefile in your download?

One of Dev-C++ shortfalls is it can't compile multiple projects all at once. You have to compile them one at a time, and you have to know manually in which order to build them.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Aug 2005
Posts: 4,832
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 324
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: c Compiler (Not C++)

  #6  
Oct 5th, 2007
What!? just save the file as something.c and hit the compile button. Job done.
... the hat of 'is this a cat in a hat?'
Reply With Quote  
Join Date: Sep 2007
Posts: 144
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
cwarn23 cwarn23 is offline Offline
Junior Poster

Re: c Compiler (Not C++)

  #7  
Oct 9th, 2007
The thing is, the source code did not come with a make file and I think dev C++ is having trouble making it. Below is the link to the source code (and I hope this link works).
http://www.xvid.org/Downloads.43.0.html?&tx_quickpoll_pi1[go]=savevote#c25
So now I am trying to contact technical support for this source code to see what compiler they recommend.
Reply With Quote  
Join Date: Sep 2007
Posts: 3
Reputation: BlZbB is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
BlZbB BlZbB is offline Offline
Newbie Poster

Re: c Compiler (Not C++)

  #8  
Oct 10th, 2007
you can use Pelles C compiler, it's very nice compiler for c and free.

Pelles C site:
http://www.christian-heffner.de/
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
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: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: c Compiler (Not C++)

  #9  
Oct 10th, 2007
read the INSTALL file and it will tell you that they used VC++ 6 and NASM assembler.
2.a/ Requirements.
------------------

- MS VisualDev 6 Processor Pack 5 or MS VisualDev 7
- nasm installed as 'nasm' in the msvc binary search paths.

<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Aug 2007
Location: Bangalore, India
Posts: 101
Reputation: ChaseVoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 10
ChaseVoid's Avatar
ChaseVoid ChaseVoid is offline Offline
Junior Poster

Re: c Compiler (Not C++)

  #10  
Oct 11th, 2007
Well if you want a simple command line compiler then you can go for DJGPP It'll work good too.
Reply With Quote  
Reply

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

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

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 4:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC