•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 423,512 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 4,658 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: 1941 | Replies: 11 | Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 96
Reputation:
Rep Power: 2
Solved Threads: 9
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++.
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++.
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation:
Rep Power: 7
Solved Threads: 59
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.
The links you posted give me a 404 page not found error.
Last edited by hollystyles : Oct 5th, 2007 at 3:45 am.
•
•
Join Date: Sep 2007
Posts: 96
Reputation:
Rep Power: 2
Solved Threads: 9
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.
# 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 3:52 am. Reason: slight mistake
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation:
Rep Power: 7
Solved Threads: 59
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.
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.
•
•
Join Date: Sep 2007
Posts: 96
Reputation:
Rep Power: 2
Solved Threads: 9
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.
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.
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 1
you can use Pelles C compiler, it's very nice compiler for c and free.
Pelles C site:
http://www.christian-heffner.de/
Pelles C site:
http://www.christian-heffner.de/
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,123
Reputation:
Rep Power: 38
Solved Threads: 929
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.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- C++ Compiler??? (C++)
- C compiler... Man I feel lame (*nix Software)
- compiler (C++)
- ?'s, JPG, Free Store and Compiler Synthesis (C)
Other Threads in the C Forum
- Previous Thread: Solution to my lexicographical sorting problem
- Next Thread: Program calculate letter occurence in a sentence



Linear Mode