×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    11

    [moved] OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    I'm coding for the Nokia N95 8GB using the following IDE's:
    Carbide.c++ v2.0
    Visual Studio 2005 Pro with Carbide.vs v3.0.1

    In my .mmp file I have put the following:
    OPTION MSVC -w off
    OPTION CW -w off
    OPTION GCCE -Wno-char-subscripts -Wno-comment -Wno-trigraphs -Wunknown-pragmas
    The intent is to ignore warnings while doing emulator builds, and deal with them only when building for on-device-debugging.

    In Carbide, emulator and device builds respond to the switches correctly.
    In Visual Studio, the switch is ignored and I still receive warnings!
    Why?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    You should try getting the actual command line composed by Carbide.vs, and check if your switch is really there.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    Here is a sample of the console output from Visual Studio.
    Note that warnings are actually explicitly turned on, and my switch is not present! Why is my OPTION being excluded?

    Code:
    1>epocroot = \Symbian\9.2\S60_3rd_FP1\
    1>* mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle msvs -enum int -ext ms -str pool -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_31__" -d  "__SERIES60_3X__" -d  "__SERIES60_3RD_FP1__" -d  "__SERIES60_3FP1__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "inc" -i "help" -i "C:\Symbian\9.2\S60_3rd_FP1\\epoc32\include" -i "C:\Symbian\9.2\S60_3rd_FP1\\epoc32\include\mmf\plugin"  -i C:\Symbian\9.2\S60_3rd_FP1\epoc32\include\variant -include symbian_os_v9.2.hrh -c .\src\Waypoint.cpp -o "Deb_S60_31_WINSCW\Waypoint.obj"
    1>inc\SpaceManager.h(370) : warning: variable / argument 'size' is not used in function

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    Well, according to your excerpt, the switch is called -warnings and not -w:
    Code:
    OPTION CW -warnings off
    works for me.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    Sorry for the late reply.

    I tried the following in my .mmp file, it had no effect in Visual Studio.
    Code:
    OPTION MSVC -warnings off
    Surely someone knows how to affect the compiler switches being passed from the Visual Studio IDE? Please help me!
    Last edited by jgiffen; 2009-06-17 at 19:57.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: OPTION MSVC -w off doesn't work in Visual Studio 2005 Pro

    The one in #4 was not a typo, consider trying that too.
    Note that although you use Visual Studio as IDE, Carbide.vs uses its own compiler, which derives from Metrowerks CodeWarrior (that is what CW abbreviates - also in the target WINSCW). mwccsym2.exe is also something like Metrowerks C Compiler, or similar.
    The last public SDK supporting "real" MSVC (WINS target) was S60 2nd FP2, a long time ago.

Similar Threads

  1. Replies: 33
    Last Post: 2011-07-31, 19:39
  2. Replies: 12
    Last Post: 2008-09-25, 08:18
  3. Visual Studio .net 2005
    By devl8tly in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-06-09, 09:53
  4. Visual Studio & Emulator problems
    By lostantipodean in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2004-08-05, 14:48
  5. Symbian does NOT work with Visual Studio .NET according to this
    By kokuryu in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2004-07-09, 15:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •