I downloaded and installed successfully. After reading through the numerous stickies and FAQ's on this site I only came across one person who seems to have my problem. But it didnt seem to be resolved. Upon reading all the advice given, I made sure that dev C++ was installed to c:\dev-c++ and my projects and/or files saved to
c:\myFiles. I'm running in Admin mode with full access rights to my C: drive and my source files are saved as "something".cpp
Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:
Compiler: Default compiler
Building Makefile: "C:\testC++\Makefile.win"
Executing make clean
rm -f dammit.o dammit.exe
Well, I'm sure Im going to be bombarded with "RTFM!!" or "did you read all the stickies?" Be assured, I'm exhausted from reading and I hope I've adhered to your posting standards.
BTW, I'm running Windows XP 2002 Service Pack 3. Thanks for your time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just an update for Wayne and Clifford... it was my friggin firewall settings that was causing the errors! Thank you for all your help! Time to get busy...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:"
You tried to compile. Got a "first error". Then you performed a "Rebuild All" and got the error you posted.
Was the "first error" the same as the error you posted?
If so, are you running an anti-virus - if so, which one?
Finally, is this a virgin installation of Dev, i.e. no reinstall/upgrades etc.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Wayne for the reply... yes, I got the same error upon first compile. And yes I'm running avast 4.8 anti-virus. And no, this is not a virgin install, 2nd install.
Also here's my .cpp code, as I said just running a test:
include <cstdlib.>
include <iostream.>
using namespace std;
int main(int argc, char *argv[])
{
printf("should be printed/n");
system("PAUSE");
return EXIT_SUCCESS;
}
I downloaded the installer file from the address in my first post, and received the "access denied" error upon the first compile. I immediately uninstalled dev-c++ but didn't delete the installer file.
After the first uninstall, I reinstalled dev-c++ again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Take your time and make sure you get rid of all traces before installing again.
The instructions give you a roadmap, but use your scavenger hunt skills.
Seek Kill Destory. :)
I don't know for sure if this is the real problem, but it is best to try it
first.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ran the uninstaller from "Start->Programs->Dev-C++, NOT from the control panel... would this be an issue? Also, I read in Aditsu's FAQ that no other steps need be taken in an uninstall for ver. 4.9.9.2 other than through the control panel. Is this correct?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dammit, I wiped out (seemingly) every last remnant (hidden files and folders included) of the program after using the uninstaller and still receiving the "access denied" error after a full reinstall and first compile of a simple console project. Heres the rebuild logfile again:
In your code you have placed a '.' after the include file names. I don't know if that would cause a problem, but it is certainly unnecessary. That is the only obviously unusual thing I can see.
Hello all... I recently installed dev C++ ver. 4.9.9.2 from this site:
https://sourceforge.net/project/downloading.php?groupname=dev-cpp&filename=devcpp-4.9.9.2_setup.exe&use_mirror=internap
I downloaded and installed successfully. After reading through the numerous stickies and FAQ's on this site I only came across one person who seems to have my problem. But it didnt seem to be resolved. Upon reading all the advice given, I made sure that dev C++ was installed to c:\dev-c++ and my projects and/or files saved to
c:\myFiles. I'm running in Admin mode with full access rights to my C: drive and my source files are saved as "something".cpp
Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:
Compiler: Default compiler
Building Makefile: "C:\testC++\Makefile.win"
Executing make clean
rm -f dammit.o dammit.exe
g++.exe -c dammit.cpp -o dammit.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
Access is denied.
make.exe: *** [dammit.o] Error 1
Execution terminated
Well, I'm sure Im going to be bombarded with "RTFM!!" or "did you read all the stickies?" Be assured, I'm exhausted from reading and I hope I've adhered to your posting standards.
BTW, I'm running Windows XP 2002 Service Pack 3. Thanks for your time.
Just an update for Wayne and Clifford... it was my friggin firewall settings that was causing the errors! Thank you for all your help! Time to get busy...
"Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:"
You tried to compile. Got a "first error". Then you performed a "Rebuild All" and got the error you posted.
Was the "first error" the same as the error you posted?
If so, are you running an anti-virus - if so, which one?
Finally, is this a virgin installation of Dev, i.e. no reinstall/upgrades etc.
Wayne
Thanks Wayne for the reply... yes, I got the same error upon first compile. And yes I'm running avast 4.8 anti-virus. And no, this is not a virgin install, 2nd install.
Also here's my .cpp code, as I said just running a test:
include <cstdlib.>
include <iostream.>
using namespace std;
int main(int argc, char *argv[])
{
printf("should be printed/n");
system("PAUSE");
return EXIT_SUCCESS;
}
And here's a copy of my makefile.win:
Project: dammit2
Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = dammit2main.o $(RES)
LINKOBJ = dammit2main.o $(RES)
LIBS = -L"C:/Dev-Cpp/lib"
INCS = -I"C:/Dev-Cpp/include"
CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
BIN = dammit2.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before dammit2.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "dammit2.exe" $(LIBS)
dammit2main.o: dammit2main.cpp
$(CPP) -c dammit2main.cpp -o dammit2main.o $(CXXFLAGS)
OK, how did you get from the first install to the second install?
Wayne
I downloaded the installer file from the address in my first post, and received the "access denied" error upon the first compile. I immediately uninstalled dev-c++ but didn't delete the installer file.
After the first uninstall, I reinstalled dev-c++ again.
So you just ran the uninstaller? That's all?
Wayne
Yes, I realize now from the FAQ that to do a COMPLETE uninstall there are extra steps. My apologies. Try this first? A clean slate?
I would give it a shot.
Take your time and make sure you get rid of all traces before installing again.
The instructions give you a roadmap, but use your scavenger hunt skills.
Seek Kill Destory. :)
I don't know for sure if this is the real problem, but it is best to try it
first.
Wayne
I ran the uninstaller from "Start->Programs->Dev-C++, NOT from the control panel... would this be an issue? Also, I read in Aditsu's FAQ that no other steps need be taken in an uninstall for ver. 4.9.9.2 other than through the control panel. Is this correct?
No. If you go down further in the please read thread, you will find directions for doing a clean uninstall.
Wayne
Looks something like this:
(3) How to UNINSTALL Dev CLEANLY - So you can re-install it successfully
http://sourceforge.net/forum/forum.php?thread_id=1036469&forum_id=48211
Holy crapola! There was a lot of devcpp.* garbage hiding out! Even after the uninstall. Going to wipe it clean and install fresh...
Take your time.
Glad to see you are a deligent hunter!
(Why do I sound like Elmer Fudd there)
Wayne
Dammit, I wiped out (seemingly) every last remnant (hidden files and folders included) of the program after using the uninstaller and still receiving the "access denied" error after a full reinstall and first compile of a simple console project. Heres the rebuild logfile again:
Compiler: Default compiler
Building Makefile: "C:\c++TestFiles\Makefile.win"
Executing make...
make.exe -f "C:\c++TestFiles\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
Access is denied.
make.exe: *** [main.o] Error 1
Execution terminated
Man, this is frustrating... but I'm not giving up yet.
OK, something else popped into my vacant brain - weird half memory
Try putting your code in a folder without ++
Something like
c:\waynesarudejerk
Wayne
Also, in your source code, your includes are weird, there is a trailing '.' that should not be there.
Wayne
Oh, and Wayne, thanks for hangin in there with me... I realize you're a busy guy, I feel bad about takin up your time with this...
No problem. Thanks for taking the time to lay out the data.
Hopefully this gets you going...
Wayne
Sometimes an antivirus can cause issues with compiling.
One of the tripwires for virus activity is something that is changing an executable.
Wayne
Heres the new logfile.. grrrr (after renaming my projects folder)
Compiler: Default compiler
Building Makefile: "C:\TestFiles\Makefile.win"
Executing make...
make.exe -f "C:\TestFiles\Makefile.win" all
g++.exe -c dammit4main.cpp -o dammit4main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
Access is denied.
make.exe: *** [dammit4main.o] Error 1
Execution terminated
updated source code:
include <cstdlib>
include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
Well, I gotta split, but I'm going to attack this fresh in the morning. Goodnight, and I owe you a Jack and Coke!
In your code you have placed a '.' after the include file names. I don't know if that would cause a problem, but it is certainly unnecessary. That is the only obviously unusual thing I can see.
When you do give up... http://www.microsoft.com/express/vc/
Actually, I'd do that in any case, but in case you still wish to persevere, I would ask you to try this:
Start->Run, enter "cmd", and then click OK.
In the console enter the following commands:
cd c:\c++testfiles
path = c:\dev-cpp\bin;%path%
make -f makefile.win
Report the results.
If that does not work, in the same command console, enter:
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
Report the results.
Some anti-virus tools and SpyBot S&D's "TeaTimer" function can often cause odd behaviour.
One other thing you might try is deleting the C:\c++TestFiles\Makefile.win file, and rebuilding.
Clifford