Re: Wierd Compiler Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 December 2014 at 06:25, shomari sharpe <shomari.sharpe@xxxxxxxxx> wrote:
> Hi,
> i need some help with a compiler issue. I'm using android native
> development kit revision 10 which uses gcc 4.8 to do compilation. I have
> created two files JNIWrapper.cpp (contains C code that meant to bridge
> java) and game.h (contains all C++ classes, variable declarations and logic
> code). The problem i have is that i cannot separate the classes into a
> separate file for each (c++ header and c++ source). If i do separate game.h
> into separate files I get "SIGSEGV 0x0000" (null pointer) for the classes i
> try to use. What on earth could be the problem??

At a guess, the problem is that static initializations are unordered
between different files.

http://www.parashift.com/c++-faq/static-init-order.html



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux