Re: Problem with redefinition of stuctures

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Showing the lines of code that got the errors would be a major contribution to having
someone answer the question. It may not be enough, but just showing error messages that
refer to unknown and unknowable code doesn't help much!
joe
On 19 Jul 2006 02:54:40 -0700, "Saska" <aleksandra.cerekovic@xxxxxxxxx> wrote:


Hello all,

I have a very stupid problem that is driving me crazy...so plz if
anyone ever saw this, I would like him to help me :)
I have static MFC application in MSVC++ 6.0 (named Example). That
application is built by one company and its usage is to show
functionality of their static libraries.
Now I created dynamic link library CoreLibrary and I want to integrate
it into this example. CoreLibrary worked properly with win32
application.
When I put main header of my .dll library into ExampleDoc.h (after
changing project properties)
After compiling I get these mistakes:

....
CoreInclude\wce_time.h(73) : warning C4273: 'asctime' : inconsistent
dll linkage. dllexport assumed.
CoreInclude\wce_time.h(74) : warning C4273: 'tzset' : inconsistent dll
linkage. dllexport assumed.
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\sys/timeb.h(84) :
error C2011: 'timeb' : 'struct' type redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\sys/timeb.h(105)
: error C2556: 'void __cdecl ftime(struct timeb *)' : overloaded
function differs only by return type from 'int __cdecl ftime(struct
timeb *)'
CoreInclude\wce_time.h(89) : see declaration of 'ftime'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\sys/timeb.h(105)
: error C2371: 'ftime' : redefinition; different basic types
CoreInclude\wce_time.h(89) : see declaration of 'ftime'
...

Seems that there is redefinition of time classes...But what to do to
avoid it?

Thx
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Problem with redefinition of stuctures
    ... functionality of their static libraries. ... dllexport assumed. ... CoreInclude\wce_time.h: see declaration of 'ftime' ...
    (microsoft.public.vc.mfc)
  • Re: Static Libraries and Assembly Language
    ... Still trying to escape the fact that you wrote what you wrote ... conversation away from your ignorance of how libraries work. ... I am showing the reason why using Static Libraries is an ... I am also showing that talking about "Code Re-Use", ...
    (alt.lang.asm)
  • image declared in xhtml code not showing in safari / konqueror
    ... my xhtml is not showing in safari / konqueror but showing just fine in ... img tag: ... css declaration: ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: bypassing the Windows Form Designer
    ... declaration will be for Form1, and will include the ": Form" showing that ... Pretty sure the base class is listed in only one of the partial class ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: is there anyone out there?
    ... I know that Millennium allows for specific ... showing only the books at that one location, ... We keep telling them that the other libraries' materials are ...
    (rec.arts.mystery)