warnings building multi threaded dll

Discussion in 'C++' started by fabian.conrad@gmail.com, Jun 18, 2007.

  1. Guest

    Hi,.
    I am trying to build a multithreaded dll file, as I am new to that
    sort of things I've followed a tutorial step by step but still can't
    get things to work. I am using Visual C++ 2005 Express Edition and
    have installed the Microsoft Platform SDK for Windows Server 2003 SP1.
    When I am building my project I am getting the following error log:
    1>------ Build started: Project: my_array, Configuration: Release
    Win32 ------
    1>Compiling...
    1>my_array.c
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1778) : warning C4161: #pragma pack(pop...) : more pops
    than pushes
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1778) : warning C4161: #pragma pack(pop...) : more pops
    than pushes
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1778) : warning C4161: #pragma pack(pop...) : more pops
    than pushes
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Platform SDK\Include\poppack.h(29) :
    warning C4161: #pragma pack(pop...) : more pops than pushes
    1>C:\Program Files\Microsoft Platform SDK\Include\poppack.h(29) :
    warning C4161: #pragma pack(pop...) : more pops than pushes
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    redefinition
    1> C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1701) : see declaration of 'localeinfo_struct'
    1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    \crtdefs.h(1778) : warning C4161: #pragma pack(pop...) : more pops
    than pushes
    1>Build log was saved at "file://e:\My Documents\Visual Studio
    2005\Projects\my_array\my_array\Release\BuildLog.htm"
    1>my_array - 6 error(s), 6 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
    ==========
    thanks for help
     
    , Jun 18, 2007
    #1
    1. Advertising

  2. Ian Collins Guest

    wrote:
    > Hi,.
    > I am trying to build a multithreaded dll file, as I am new to that
    > sort of things I've followed a tutorial step by step but still can't
    > get things to work. I am using Visual C++ 2005 Express Edition and
    > have installed the Microsoft Platform SDK for Windows Server 2003 SP1.


    Off topic here, try a windows programming group.

    --
    Ian Collins.
     
    Ian Collins, Jun 18, 2007
    #2
    1. Advertising

  3. dasjotre Guest

    On 18 Jun, 08:27, wrote:
    > 1>my_array.c
    > 1>C:\Program Files\Microsoft Visual Studio 8\VC\include
    > \crtdefs.h(1701) : error C2011: 'localeinfo_struct' : 'struct' type
    > redefinition


    google for 'one definition rule' C++

    > \crtdefs.h(1778) : warning C4161: #pragma pack(pop...) : more pops
    > than pushes


    push/pop pragmas are like open/close braces
    for each push pragma there has to be one pop pragma

    regards

    DS
     
    dasjotre, Jun 18, 2007
    #3
  4. Can I do Says as I can do

    Joined:
    Jun 18, 2007
    Messages:
    1

    For error C2011: Please check declatrations of Structures,Unions and classes.

    There might be duplication of declarations of Structures,Unions and classes.
     
    Can I do Says as I can do, Jun 18, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David
    Replies:
    0
    Views:
    549
    David
    Sep 24, 2003
  2. ian douglas
    Replies:
    2
    Views:
    1,006
    Randy Howard
    Jul 30, 2004
  3. Tom Williams
    Replies:
    0
    Views:
    260
    Tom Williams
    Jul 22, 2004
  4. Ted Sung
    Replies:
    1
    Views:
    329
    Sherm Pendley
    Aug 30, 2004
  5. Tom Williams
    Replies:
    0
    Views:
    178
    Tom Williams
    Feb 6, 2005
Loading...

Share This Page