regarding c++11 support

Sysprogs forums Forums VisualGDB regarding c++11 support

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9133
    akhilavit
    Participant

    I have created a demo app which uses shared lib. For this I followed http://visualgdb.com/tutorials/linux/libraries/

    I am able to debug in SO project.

    When I change CXX FLAG of MySharedLib to -std=c++11 I am unable to debug, there should be additional setting right?

    Note: I can debug in LinuxApp as its CXX FLAG is unchanged.

    For experiment, when I changed CXX FLAG of LinuxApp to -std=c++11, I cannot debug main too.

     

    Please answer in details,

    Thanks

     

    #9137
    support
    Keymaster

    There should not be any extra setting needed. Perhaps while specifying -std=c++11 you have accidentally removed -ggdb?

    #9184
    akhilavit
    Participant

    Yes! I was using only -std=c++11.

    I should use -ggdb -ffunction-sections -O3 -std=c++11

    Right?

    #9194
    support
    Keymaster

    Hi,

    For release configurations – yes. For debug configurations you should replace -O3 with -O0 as optimized code is hard to debug.

    #9197
    akhilavit
    Participant

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.