Connecting Tech Pros Worldwide Help | Site Map

warnings building multi threaded dll

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 18th, 2007, 07:35 AM
fabian.conrad@gmail.com
Guest
 
Posts: n/a
Default warnings building multi threaded dll

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.h tm"
1>my_array - 6 error(s), 6 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
thanks for help


  #2  
Old June 18th, 2007, 07:35 AM
Ian Collins
Guest
 
Posts: n/a
Default Re: warnings building multi threaded dll

fabian.conrad@gmail.com wrote:
Quote:
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.
  #3  
Old June 18th, 2007, 01:45 PM
dasjotre
Guest
 
Posts: n/a
Default Re: warnings building multi threaded dll

On 18 Jun, 08:27, fabian.con...@gmail.com wrote:
Quote:
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++
Quote:
\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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.