Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rimita on January 20, 2017, 08:20:58 am

Title: Exception Handling...Need Help Urgently
Post by: rimita on January 20, 2017, 08:20:58 am
I am trying to run a BOOST server using C::B IDE. The code is getting compiled and run properly using g++ in terminal, but while running in C::B, it is giving an error...
In __cxa_throw () (/usr/lib/x86_64-linux-gnu/libstdc++.so.6)
#2  0x0000000000413ffe in __gnu_cxx::new_allocator<s11n_example::stock>::allocate (this=0x7fffffffe2b8, __n=268435456) at /usr/include/c++/4.8/ext/new_allocator.h:104
/usr/include/c++/4.8/ext/new_allocator.h:104:3233:beg:0x413ffe
At /usr/include/c++/4.8/ext/new_allocator.h:104

The code is attached here..
Title: Re: Exception Handling...Need Help Urgently
Post by: BlueHazzard on January 20, 2017, 03:33:55 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

[Edit:] This looks like a crash and not a compiling problem?
Well then you have to search the reason in your code. Codeblocks has nothing to do with the executed code. You probably miss some compiler/linker parameter or use the wrong compiler....