GCC link problem help!

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

 



Hellow Tom and Liu Hao,
   We encounter another GCC link problem. Our hardware is cotex-M33 platform,  our software project development on windows environment and use GCC compiler and the gcc-linker as bellow:


   gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q2-update)

   GCC: GNU ISO C11  7 2018-q2-update 

   GCC parameter:  -std=gnu11

   gcc-linker parameter: --specs=nano.specs --specs=nosys.specs
   
   Our project need link a C++ static lib into our project. The C++ lib build enviroment as bellow:
   G++:GNU ISO 2011 C++
   G++ parameter:-std=gnu++11 -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-non-call-exceptions



   But we found that if we linked the C++ static lib to our program, then the program have runtime logic problem sometimes. If we do not link the C++ lib, it can run well. We can not understand why the reason. We guess, if maybe some gcc linker parameter need used when we need link the C++ lib? 
   Can you give us some suggest about how to fix this problem!   


Best regards, 
Operagui

 
 




[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