OpenGL ZEngine problem with devC++

Recommended Posts

Gavinl    118
Hey again, I just downlaoded ZEngine for devC++, and i followed all the insturctions on the webpage, i linked all the libraries that they told me to link and such, but when i try to compile one of their programs, i keep getting this error [Linker error] undefined reference to _Unwind_Resume' [Linker error] undefined reference to __gxx_personality_v0' these are the libraries i'm linking, its what they told me to do. -lmingw32 -lZEngineS -lSDL_mixer -lSDL_image -lSDL_ttf -lSDLmain -lSDL -lOpenGL32 Is there something i'm missing? Thanks Gavin

Share on other sites
Deranged    668
That usually happens when you either create the wrong kind of project(console instead of win32) or you created a c project instead of a c++ one.

2 Things to try:

1. Execute -> Rebuild All
2. MAke a new project(empty as c++) go to project options and change it to win32 application.

Share on other sites
Fruny    1658
__gxx_personality_v0

That means you're trying to compile a C++ program with gcc and not g++.

Share on other sites
Gavinl    118
well i tried doing those 2 things, but i'm still getting the same errors :(

Share on other sites
Drew_Benton    1861
Did you also follow this tutorial? At the end it mentions that you use should use the newest Dev-CPP as well. Are you?

Share on other sites
Deranged    668
Open the .dev file, find the variable IsCpp and make sure its set to 1, if that doesnt work post your whole compile log.

Share on other sites
Gavinl    118
Yes that was the tutorial i was using and I am using the latest version of dev C++

i checked if iscpp=1 and it was.

this is the compile log:

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Gavin\Desktop\test zEngine\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Gavin\Desktop\test zEngine\Makefile.win" all
g++.exe Untitled1.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/include" -L"C:/Documents and Settings/Gavin/Desktop/expression_0.2/expression/lib" -L"C:/Dev-Cpp/include/ZEngine-0.8.5/lib" -L"C:/Dev-Cpp/ZEngine-0.8.5/lib" -L"C:/Dev-Cpp/SDL/lib" -mwindows -lmingw32 -lZEngineS -lSDL_mixer -lSDL_image -lSDL_ttf -lSDLmain -lSDL -lOpenGL32

C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0x108):ZE_ZEngine.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0x697):ZE_ZEngine.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0xdd7):ZE_ZEngine.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0x1039):ZE_ZEngine.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0x110c):ZE_ZEngine.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.text+0x24e5):ZE_ZEngine.cpp: more undefined references to _Unwind_Resume' follow
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZEngine.o)(.eh_frame+0x12):ZE_ZEngine.cpp: undefined reference to __gxx_personality_v0'

C:/Dev-Cpp/lib/libZEngineS.a(VersionInfo.o)(.text+0x65):VersionInfo.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(VersionInfo.o)(.text+0xd5):VersionInfo.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(VersionInfo.o)(.text+0x2f7):VersionInfo.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(VersionInfo.o)(.eh_frame+0x12):VersionInfo.cpp: undefined reference to __gxx_personality_v0'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.text+0xa0):ZE_ZError.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.text+0x53e):ZE_ZError.cpp: undefined reference to _Unwind_Resume'

C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.text+0x61e):ZE_ZError.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.text+0x72b):ZE_ZError.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.text+0x9d9):ZE_ZError.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZError.o)(.eh_frame+0x12):ZE_ZError.cpp: undefined reference to __gxx_personality_v0'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_ZRect.o)(.eh_frame+0x11):ZE_ZRect.cpp: undefined reference to __gxx_personality_v0'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_Utility.o)(.text+0x57):ZE_Utility.cpp: undefined reference to _Unwind_Resume'
C:/Dev-Cpp/lib/libZEngineS.a(ZE_Utility.o)(.eh_frame+0x12):ZE_Utility.cpp: undefined reference to __gxx_personality_v0'

make.exe: *** [Project1.exe] Error 1

Execution terminated

and this is the program i'm trying to compile:

//==========================
#include "ZEngine.h"
using namespace ZE;

int main(int argc, char *argv[])
{
ZEngine *ze = ZEngine::GetInstance();

ze->SetupDisplay(800,600,16,false); //800x600,16bpp,non-fullscreen
ze->CreateDisplay("ZEngine Test");

do
{
ze->CheckEvents(); //always check events

if(ze->IsActive())
{
ze->Clear();

//drawing

ze->Update();
}
} while(!ze->QuitRequested());

ZEngine::ReleaseInstance(); //make sure you release the engine

return 0;
}

//==========================

Share on other sites
Deranged    668
They appear to be errors built into the library itself...

whats the S for, is there a just libZEngine without the S?

Share on other sites
Deranged    668
Also, what version of dev-c++ do you have?

Share on other sites
Drew_Benton    1861
Quote:
 Original post by GavinlYes that was the tutorial i was using and I am using the latest version of dev C++i checked if iscpp=1 and it was.

1 last suggestion. Try and remove the "-mwindows". I did not see that listed in the guide and you are a using console program so I do not think it is needed.

- Drew

Share on other sites
Gavinl    118
libZEngineS is supposed to have the S on it.

I'm using version 5 of dev C++, the newest one.

and the -mwindows, i dont think i can take that out, devC++ automatically put that in when i tried to compile it.

I'll try emailing the guy who wrote Zengine, hopefully he knwos whats up with it.

Gavin

Share on other sites
Deranged    668
You could always download the source to the library and compile the .a yourself...

Share on other sites
Drew_Benton    1861
Quote:
 Original post by GavinllibZEngineS is supposed to have the S on it. I'm using version 5 of dev C++, the newest one.and the -mwindows, i dont think i can take that out, devC++ automatically put that in when i tried to compile it.I'll try emailing the guy who wrote Zengine, hopefully he knwos whats up with it.Gavin

Don't mean to keep on repeating, but did you make a console application as DerAnged has suggested? I do not see why DevCPP is putting that lib unless you made a Win32. But I may be wrong...

Share on other sites
Gavinl    118
what do you mean?

Share on other sites
Deranged    668
Go to project options, if its a console app try Win32, if its win32 try console,

I know i use win32 all te time and it doesnt add -mwindows, so jsut remove it, it wont come back, also make sure youre not compiling as static lib or dll.

Share on other sites
cozman    583
edit: noticed you were using 0.8.5, and therefore I'm assuming you're using precompiled binaries.. That error looks to me like you should attempt to compile ZEngine yourself.

I wrote ZEngine, I haven't worked on it in over a year, but I would like to talk to anyone who is using it. I'll probably post about this once I decide which forum it belongs in.

Did you build ZEngine yourself or try using a precompiled binary? I'd recommend building yourself as I built those quite a long time ago.

PS. This is the 4th ZEngine issue I've been contacted with in 10 days, after not hearing about ZEngine from anyone in about 6 months. Any idea where everyone is coming from all of the sudden Gavinl?

Share on other sites
Gavinl    118
I'm using this ZEngine 0.8.5 and i used the prebuilt one

Maybe DevC++ is just a crappy IDE, i'll try installing VC++ 6, maybe i'll have some luck with that, but I doubt it.

I wanted to use ZEngine because it has an easy way to draw a rotated image, SDL doesn't seem to have that, but if anyone knows how i can draw a rotated image using SDL, i wont need ZEngine.

I'll keep you posted with what i have with VC++

Thanks

Share on other sites
cozman    583
I'd recommend not trying VC6, first of all the STL is used a lot in ZEngine, VC6 has abysmal STL support also I developed on Windows with Dev-C++ and VC7.

If you want to use ZEngine try building it yourself, it's not that hard. If you download the source package from sourceforge it comes with dev-c++ project files that should work, email me if you have any trouble. (In 0.8.5 my email address is probably incorrect, I no longer own the conceptofzero.net domain)

SDL does not have image rotation built in, to do this quickly you need OpenGL or D3D, ZEngine uses OGL. As posted on the ZEngine site, I haven't updated ZEngine in quite some time, and don't plan to. Also the person who offered to take over seems to have gone AWOL.

Share on other sites
Deranged    668
I wouldnt call dev-c++ a crappy ide, i find it phenominal, i have used it for 2-3 years, plus it uses gcc, and i love gcc.

Share on other sites
cozman    583
I'd agree with DerAnged, I am fairly confident that the issue is in the precompiled libraries. I'd be more suprised if it had something to do with gcc than if it did with my own code. (Although I do know that ZEngine works with gcc, half of the development was on linux using gcc, and it was tested in dev-c++)

Create an account

Register a new account

• Similar Content

• I assumed that if a shader is computationally expensive then the execution is just slower. But running the following GLSL FS instead just crashes
void main() { float x = 0; float y = 0; int sum = 0; for (float x = 0; x < 10; x += 0.00005) { for (float y = 0; y < 10; y += 0.00005) { sum++; } } fragColor = vec4(1, 1, 1 , 1.0); } with unhandled exception in nvoglv32.dll. Are there any hard limits on the number of steps/time that a shader can take before it is shut down? I was thinking about implementing some time intensive computation in shaders where it would take on the order of seconds to compute a frame, is that possible? Thanks.

• There are studios selling applications which is just copying any 3Dgraphic content and regenerating into another new window. especially for CAVE Virtual reality experience. so that the user opens REvite or CAD or any other 3D applications and opens a model. then when the user selects the rendered window the VR application copies the 3D model information from the OpenGL window.
I got the clue that the VR application replaces the windows opengl32.dll file. how this is possible ... how can we copy the 3d content from the current OpenGL window.

Thanks
• By cebugdev
hi all,

i am trying to build an OpenGL 2D GUI system, (yeah yeah, i know i should not be re inventing the wheel, but this is for educational and some other purpose only),
i have built GUI system before using 2D systems such as that of HTML/JS canvas, but in 2D system, i can directly match a mouse coordinates to the actual graphic coordinates with additional computation for screen size/ratio/scale ofcourse.
now i want to port it to OpenGL, i know that to render a 2D object in OpenGL we specify coordiantes in Clip space or use the orthographic projection, now heres what i need help about.
1. what is the right way of rendering the GUI? is it thru drawing in clip space or switching to ortho projection?
2. from screen coordinates (top left is 0,0 nd bottom right is width height), how can i map the mouse coordinates to OpenGL 2D so that mouse events such as button click works? In consideration ofcourse to the current screen/size dimension.
3. when let say if the screen size/dimension is different, how to handle this? in my previous javascript 2D engine using canvas, i just have my working coordinates and then just perform the bitblk or copying my working canvas to screen canvas and scale the mouse coordinates from there, in OpenGL how to work on a multiple screen sizes (more like an OpenGL ES question).
lastly, if you guys know any books, resources, links or tutorials that handle or discuss this, i found one with marekknows opengl game engine website but its not free,
Just let me know. Did not have any luck finding resource in google for writing our own OpenGL GUI framework.
IF there are no any available online, just let me know, what things do i need to look into for OpenGL and i will study them one by one to make it work.
thank you, and looking forward to positive replies.

• I have a few beginner questions about tesselation that I really have no clue.
The opengl wiki doesn't seem to talk anything about the details.

What is the relationship between TCS layout out and TES layout in?
How does the tesselator know how control points are organized?
e.g. If TES input requests triangles, but TCS can output N vertices.
What happens in this case?
http://www.informit.com/articles/article.aspx?p=2120983
the isoline example TCS out=4, but TES in=isoline.
And gl_TessCoord is only a single one.
So which ones are the control points?
How are tesselator building primitives?
• By Orella
I've been developing a 2D Engine using SFML + ImGui.
Here you can see an image
The editor is rendered using ImGui and the scene window is a sf::RenderTexture where I draw the GameObjects and then is converted to ImGui::Image to render it in the editor.
Now I need to create a 3D Engine during this year in my Bachelor Degree but using SDL2 + ImGui and I want to recreate what I did with the 2D Engine.
I've managed to render the editor like I did in the 2D Engine using this example that comes with ImGui.
3D Editor preview
But I don't know how to create an equivalent of sf::RenderTexture in SDL2, so I can draw the 3D scene there and convert it to ImGui::Image to show it in the editor.
If you can provide code will be better. And if you want me to provide any specific code tell me.
Thanks!

• 14
• 20
• 35
• 13
• 39