Pragma Derectives RRS feed

  • Question

  • Hi

    Is there anyway to use custom pragma directives in Visual C++ 2005. I have a source file wherein the pragma derectives are declared as below


    #pragma ghs section sbss=".sec2"

    unsigned int var; 

    #pragma ghs section sbss=default

    Now when I compile the source it gives a warning, "Unknown pragma". Its because the compiler does not recognize this pragma.. So is there any way to get the compiler recognize this pragma derective..

    Thanks all..

    Friday, June 1, 2012 10:49 AM

All replies

  • Hi there--

    You have erroneously posted your question in a user forum dedicated to Microsoft Project Server, an enterprise project management tool.  I would suggest that you repost your question in a forum dedicated to Visual C.


    Hope this helps. 

    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    • Proposed as answer by Paul MC2 Tuesday, June 5, 2012 7:34 PM
    Friday, June 1, 2012 11:03 AM