[omniORB] MS Visual C++ 6.0
Bjorn Wennberg
bjornw@tihlde.org
15 Jul 1999 11:55:17 +0200
"Janet Truitt" <jtruitt@cs.ua.edu> writes:
> Hello,
> Here are the link errors, I will try the other things that you mentioned.
>
> Thanks.
> Janet
>
>
> Deleting intermediate files and output files for project 'Server - Win32
> Debug'.
> --------------------Configuration: Server - Win32
> Debug--------------------
> Compiling...
> Min_one_way_srvr.cpp
> c:\home\thesis\omniorb\omniorb_2.7.1\include\omniorb2\omniinternal.h(132)
> : warning C4518: '__declspec(dllimport ) ' : storage-class or type
> specifier(s) unexpected here; ignored
> c:\home\thesis\omniorb\omniorb_2.7.1\include\omniorb2\bufferedstream.h(621)
> : warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false'
> (performance warning)
> Min_one_waySK.cpp
> c:\home\thesis\omniorb\omniorb_2.7.1\include\omniorb2\omniinternal.h(132)
> : warning C4518: '__declspec(dllimport ) ' : storage-class or type
> specifier(s) unexpected here; ignored
> c:\home\thesis\omniorb\omniorb_2.7.1\include\omniorb2\bufferedstream.h(621)
> : warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false'
> (performance warning)
> Linking...
> Min_one_waySK.obj : error LNK2005: "public: virtual unsigned long
> __thiscall _0RL_pc_0ec4f0a1a65e840f_00000000::alignedSize(unsigned long)"
> (?alignedSize@_0RL_pc_0ec4f0a1a65e840f_00000000@@UAEKK@Z) already defined
> in Min_one_way_srvr.obj
[snip]
It seems to me that you have cross-includes or you are linking the same file
twice. Be sure to wrap your include-files with
#ifndef _my_file_included_h
#define _my_file_included_h
...header-file decls...
#endif
bjornw>