The compiler will be indicated on the compile log.
The compiler will be some form of either either gcc or g++ and will appear on
the compile log.
You need to look at the compile log with the detail, the entire command line.
It should be in the bottom window during the compile.
You may need to change an option to see it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The program is compiled with g++ so it is ok there.
I think the problem may be that Windows 7 doesn't have the libstdc++-6.dll.
The file should be in the bin directory of the MinGw compiler.
Copy it to the directory containing your executable and see if it works.
For a permanent fix it can be copied to the Windows directory instead.
You may also need to copy other dlls as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
tried copying the dll to the directory of my program, but it said the file was
already there. i have a copy of gnuplots in the same folder, and that has a
dll with the same name. so my program was reading that instead of the one in
winGW. i just have to move gnuplots.
thanks for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You were probably mixing 32 and 64 bit code. Your executable was one (probably
32 bit), and the dll was the other. Hence the "personality" error. Windows 7
will usually use 64 bit code. Dev-cpp probably comes with the 32 bit version
of windows.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i attempt to run a program using the function 'ofstream', the code
compiles but fails to run; returning this error message
"the procedure entry point _gxx_personality_v0 could not be located in the
dynamic link library libstdc++-6.dll."
ifstream returns the same error message. these functions worked fine on my old
vista laptop, but dont work on my new 7 laptop.
is there any way i can fix this myself?
Is it bring compiled with g++?
Post the compile log.
there are no problems with compiling, the log simply reads 'compiler: default
compiler, done'
and that first bit didnt make any sense to me, could you clarify 'Is it bring
compiled with g++?' please
The compiler will be indicated on the compile log.
The compiler will be some form of either either gcc or g++ and will appear on
the compile log.
You need to look at the compile log with the detail, the entire command line.
It should be in the bottom window during the compile.
You may need to change an option to see it.
oh, that compile log. gotcha.
it reads:
compiler: default compiler
executing g++.exe...
g++.exe "C:\users\jon\documents\programming\test.cpp" -o
""C:\users\jon\documents\programming\test..exe"
execution terminated
compilation successful
The program is compiled with g++ so it is ok there.
I think the problem may be that Windows 7 doesn't have the libstdc++-6.dll.
The file should be in the bin directory of the MinGw compiler.
Copy it to the directory containing your executable and see if it works.
For a permanent fix it can be copied to the Windows directory instead.
You may also need to copy other dlls as well.
The problem might also be solved by using the option -static-libstdc++ .
This will include the code in your executable so a dll isn't necessary.
sorted it, thanks.
tried copying the dll to the directory of my program, but it said the file was
already there. i have a copy of gnuplots in the same folder, and that has a
dll with the same name. so my program was reading that instead of the one in
winGW. i just have to move gnuplots.
thanks for your help
You were probably mixing 32 and 64 bit code. Your executable was one (probably
32 bit), and the dll was the other. Hence the "personality" error. Windows 7
will usually use 64 bit code. Dev-cpp probably comes with the 32 bit version
of windows.