i installed a new version of dev c++ 5 after an os rebuild. i run it an open a project i was previously working on with the same version (no i didn't install over the top. i completely deleted the former distro) ii tried compiling and running. No compiler errors or warnings yet i get a "project not compiled" warning. I do e rebuld all, same result. I type crap into the source of my project, same result.
I started a complete new programme with lots of errors in it. Same result.
Compiler log shows this
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -S Templates/main.cpp -o nul -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"
Execution terminated
Compilation successful
"Execution terminated"
I unustalled and reisntalled twice
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
see below. Winsock errors. I cab't remember the name of the library for winsock but the problem is why isn't the gui reporting errors???
clientclass.o(.text+0x1084):clientclass.cpp: undefined reference to bind@12'
clientclass.o(.text+0x10ae):clientclass.cpp: undefined reference toshutdown@8'
clientclass.o(.text+0x10d6):clientclass.cpp: undefined reference to recv@16'
clientclass.o(.text+0x1107):clientclass.cpp: undefined reference torecv@16'
clientclass.o(.text+0x111d):clientclass.cpp: undefined reference to closesocket
@4'
clientclass.o(.text+0x119f):clientclass.cpp: undefined reference torecv@16'
clientclass.o(.text+0x1237):clientclass.cpp: undefined reference to htons@4'
clientclass.o(.text+0x124c):clientclass.cpp: undefined reference toinet_addr@4
'
clientclass.o(.text+0x128b):clientclass.cpp: undefined reference to gethostbyna
me@4'
clientclass.o(.text+0x12e8):clientclass.cpp: undefined reference toconnect@12'
clientclass.o(.text+0x12f9):clientclass.cpp: undefined reference to WSAGetLastE
rror@0'
clientclass.o(.text+0x133e):clientclass.cpp: undefined reference toWSAStartup@
8'
clientclass.o(.text+0x1371):clientclass.cpp: undefined reference to WSACleanup@
0'
clientclass.o(.text+0x1392):clientclass.cpp: undefined reference tosocket@12'
collect2: ld returned 1 exit status
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-09-18
Those are just the errors. We need the whole log. It includes information that tells us something about your installation, which may be important in determining why it does not work in the IDE.
To get all necessary information, do a clean build:
make -fmakefile.win clean
make -fmakefile.win all
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you follow the directions for doing so in the thread titled "Please Read Before Posting a Question"?
(Consider your answer before you post it, as the directions in question have some somewhat strident demands to document what you did that you did not comply with ;-)
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry that should be
"I unistalled and reinstalled twice".
My spelling is atrocious. :)
By uninstalling i mean uninstalled then completely deleted the directory. I couldn't find anything in the
"Please Read Before Posting a Question" other than a rather impressive looking resource editor. Am I missing something?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-09-13
It is not displaying an error because as far as it is concerened it has done exactly what it was told.
The part of the compiler invokation:
-S Templates/main.cpp -o nul
Tells the compiler to generate assembler code and no object file. This is normally an intermediate stage to generating the object code, but -S causes the compiler to stop after this stage.
I would suggest you check the options set for your project or defaults.
Is it possible that you intended the -s (lower-case) linker option to strip the executable?
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know where the -Some from
I tried it again and got the same result and the log revealed the following
Compiler: Default compiler
Building Makefile: "C:\Development\news_client\Makefile.win"
Executing make...
make.exe -f "C:\Development\news_client\Makefile.win" all
g++.exe main.o -o "omega.exe" -L"C:/DEV-CPP/lib" -mwindows
Execution terminated
Compilation successful
End when i ran it, "project not compiled"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-09-14
You are kidding right? The two logs are from entirely different projects. The path to the makefile is different in each case.
In the second log, only the link stage is shown (presumably because the constituent sources were previously compiled). To show more information you must do Execute|Rebuld All.
Have you actually looked to see is omega.exe has been created, and then run it from explorer or a command prompt? I am trying to determine if it realy has not be built or if Dev-C++ simply cannot find the correct executable. If the exe does exist, I suggest you post the content of the .dev file. - but make sure it is the .dev file related to the compile log ;-)
Clifford
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-09-18
I apologise, your previous posts included the relevant information, so you need not necessarily have done that.
Again not related to the problem, but because C:/DEV-CPP/lib is a default library path (thanks to the -L option), you only need to add -lws2_32 to link libws2_32.a. The relative path you currently have will break the build if you move the project.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i installed a new version of dev c++ 5 after an os rebuild. i run it an open a project i was previously working on with the same version (no i didn't install over the top. i completely deleted the former distro) ii tried compiling and running. No compiler errors or warnings yet i get a "project not compiled" warning. I do e rebuld all, same result. I type crap into the source of my project, same result.
I started a complete new programme with lots of errors in it. Same result.
Compiler log shows this
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -S Templates/main.cpp -o nul -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"
Execution terminated
Compilation successful
"Execution terminated"
I unustalled and reisntalled twice
well i run windows 98 and i wnt through the whole process again. It would be nice if the compiler would tell me what went wrong but it doesn't. :(
see below. Winsock errors. I cab't remember the name of the library for winsock but the problem is why isn't the gui reporting errors???
clientclass.o(.text+0x1084):clientclass.cpp: undefined reference to
bind@12' clientclass.o(.text+0x10ae):clientclass.cpp: undefined reference toshutdown@8'clientclass.o(.text+0x10d6):clientclass.cpp: undefined reference to
recv@16' clientclass.o(.text+0x1107):clientclass.cpp: undefined reference torecv@16'clientclass.o(.text+0x111d):clientclass.cpp: undefined reference to
closesocket @4' clientclass.o(.text+0x119f):clientclass.cpp: undefined reference torecv@16'clientclass.o(.text+0x1237):clientclass.cpp: undefined reference to
htons@4' clientclass.o(.text+0x124c):clientclass.cpp: undefined reference toinet_addr@4'
clientclass.o(.text+0x128b):clientclass.cpp: undefined reference to
gethostbyna me@4' clientclass.o(.text+0x12e8):clientclass.cpp: undefined reference toconnect@12'clientclass.o(.text+0x12f9):clientclass.cpp: undefined reference to
WSAGetLastE rror@0' clientclass.o(.text+0x133e):clientclass.cpp: undefined reference toWSAStartup@8'
clientclass.o(.text+0x1371):clientclass.cpp: undefined reference to
WSACleanup@ 0' clientclass.o(.text+0x1392):clientclass.cpp: undefined reference tosocket@12'collect2: ld returned 1 exit status
Those are just the errors. We need the whole log. It includes information that tells us something about your installation, which may be important in determining why it does not work in the IDE.
To get all necessary information, do a clean build:
make -fmakefile.win clean
make -fmakefile.win all
Clifford
add the winsock libs, i.e.: -lws32
yeah i guessed that but that's not the problem. The biggie is why isn't the compiler reporting errors to the IDE?
"I unustalled and reisntalled twice"
Did you follow the directions for doing so in the thread titled "Please Read Before Posting a Question"?
(Consider your answer before you post it, as the directions in question have some somewhat strident demands to document what you did that you did not comply with ;-)
Wayne
Sorry that should be
"I unistalled and reinstalled twice".
My spelling is atrocious. :)
By uninstalling i mean uninstalled then completely deleted the directory. I couldn't find anything in the
"Please Read Before Posting a Question" other than a rather impressive looking resource editor. Am I missing something?
Yes, there is a section in there on how to do a clean uninstall. It 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
There is, in fact more to it than what you did.
Wayne
It is not displaying an error because as far as it is concerened it has done exactly what it was told.
The part of the compiler invokation:
-S Templates/main.cpp -o nul
Tells the compiler to generate assembler code and no object file. This is normally an intermediate stage to generating the object code, but -S causes the compiler to stop after this stage.
I would suggest you check the options set for your project or defaults.
Is it possible that you intended the -s (lower-case) linker option to strip the executable?
Clifford
I don't know where the -Some from
I tried it again and got the same result and the log revealed the following
Compiler: Default compiler
Building Makefile: "C:\Development\news_client\Makefile.win"
Executing make...
make.exe -f "C:\Development\news_client\Makefile.win" all
g++.exe main.o -o "omega.exe" -L"C:/DEV-CPP/lib" -mwindows
Execution terminated
Compilation successful
End when i ran it, "project not compiled"
You are kidding right? The two logs are from entirely different projects. The path to the makefile is different in each case.
In the second log, only the link stage is shown (presumably because the constituent sources were previously compiled). To show more information you must do Execute|Rebuld All.
Have you actually looked to see is omega.exe has been created, and then run it from explorer or a command prompt? I am trying to determine if it realy has not be built or if Dev-C++ simply cannot find the correct executable. If the exe does exist, I suggest you post the content of the .dev file. - but make sure it is the .dev file related to the compile log ;-)
Clifford
Clifford
i seem to get it whatever project i choose so i'll go through this step by step
step one. I load the project
File->reopen-> omega.dev
Execute->Rebuild all
compiler log shows
Compiler: Default compiler
Building Makefile: "C:\Development\news_client\Makefile.win"
Executing make clean
rm -f main.o omega.exe
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"
g++.exe main.o -o "omega.exe" -L"C:/DEV-CPP/lib" -mwindows
Execution terminated
Compilation successful
execute->run.
dialog box comes up "project not compiled"
debig->debug
dialog box comes up "project not compiled"
now according to the log it should have created an executable omega.exe
"g++.exe main.o -o "omega.exe" -L"C:/DEVCPP/lib" -mwindows "
So i search my harddrive. Nothing found.
It's not producing the executable.
What happens if you do a command line build?
The following should work from the projects directory:
path = %path%;c:\devcpp\bin
make -fmakefile.win all
Clifford
ok i got the errors out of the source code and it compiled ok but as you say we still need to find why the ide isn't producing compiler output
here's the dump
C:\Development\news_client>make -f makefile.win clean
rm -f main.o clientclass.o omega.exe
C:\Development\news_client>make -f 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"
g++.exe -c clientclass.cpp -o clientclass.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"
g++.exe main.o clientclass.o -o "omega.exe" -L"C:/DEV-CPP/lib" -mwindows ../..
/Dev-Cpp/lib/libws2_32.a
I apologise, your previous posts included the relevant information, so you need not necessarily have done that.
Again not related to the problem, but because C:/DEV-CPP/lib is a default library path (thanks to the -L option), you only need to add -lws2_32 to link libws2_32.a. The relative path you currently have will break the build if you move the project.
Clifford