Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Help123me

macrumors newbie
Original poster
Sep 23, 2009
2
0
Hi,
I'm trying to compile and execute a program written in c++, but there are some problems. I can compile it, but when I try to execute the GUI file, I get the following error:

Last login: Wed Sep 23 10:22:55 on ttys001
/Users/praktikant/Desktop/CancerSim/GUI ; exit;
maggy:~ praktikant$ /Users/praktikant/Desktop/CancerSim/GUI ; exit;
Assertion failed: (0), function aglSetIntegerHIViewRef, file aglHIView.c, line 395.
Abort trap
logout

[Prozess beendet]

Before I could compile it, I had to change the AGLDrawable functions to WindowRef, cause it is deprecated for Mac-OSX-Version 10.5 and later.
The problem is, that I can't find he file aglHIView.c, and I really searched the whole PC with 'find'. ANd also there isn't a function called 'aglSetIntegerHIViewRef', only 'aglSetInteger'.
I don't know, what I should do now, so it would be great, if someone can help me!

Thanks
 
That is probably an assertion inside a library. You don't have aglHIView.c because you only have the compiled library, not the source. My guess is that you are giving a bad argument to a function in the library. If you use a debugger you should be able to find what call in your program causes the problem. Otherwise, it could be a bug in the library.
 
okay, thank you, now I understand why I can't find it:rolleyes:
I'll try to debug it, but I can't use the mac at the moment, so I will tell you later, if it worked:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.