You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Ian Warner <iw...@openfox.com> on 2004/05/11 23:38:31 UTC
Compile error -inconsistent dll linkage
Hi,
does anyone know why I get these warnings when I try to compile my Xalan implementation class?
warning C4273: 'execute' : inconsistent dll linkage. dllexport assumed
warning C4273: 'getError' : inconsistent dll linkage. dllexport assumed
warning C4273: 'clone' : inconsistent dll linkage. dllexport assumed
I'm using VC++ sp5 on Windows 2003 server with Xerces2_5 and Xalan1_8
The program links but I get "Program too big to fit in memory' when I run it.
It's only 2500 lines so I am assuming I need to clean up the above warnings - note - It works fine under unix
Any ideas?
Linking Error for Xalan1.7
Posted by Rakesh Bajpai <ra...@ness-gsg.com>.
HI I have Compiled Xalan on Solaris and now i m using its library with my other program.
Does any body knows why i am getting following error in link time
CC -mt -xildoff -zmuldefs -g -L /vobs/common_vob/build_tools/publish_solaris/lib -library=%none -L /vobs/rw_rls_unix_vob/rw_rls_unix/solaris8_wspro7_32/lib -L/home/hades/users/rbajpai/Xalan/xerces-c-src_2_5_0/lib -L/home/hades/users/rbajpai/Xalan/xml-xalan/c/lib -o LoadIfwConfig.debug -L . Main_dbg.o -ldbt5215d -lfunctor2315d -lfunctor_list2315d -lfunctor_map2315d -litc2315d -lmime1115d -lmny2415d -lnetwork1715d -lpointer2315d -lstd3015d -lstreams1215d -lsync2315d -lthread2315d -lthrexcept2315d -ltls7715d -ltrace2315d -lnsl -lsocket -lposix4 -lthread -lxalan-c -lxerces-c || ( rm -f LoadIfwConfig.debug; exit 1 )
Undefined first referenced
symbol in file
std::basic_ostream<char,std::char_traits<char> >&std::operator<<(std::basic_ostream<char,std::char_traits<char> >&,const char*) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::operator<<(std::basic_ostream<char,std::char_traits<char> >&(*)(std::basic_ostream<char,std::char_traits<char> >&)) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
long std::basic_istream<char,std::char_traits<char> >::gcount()const /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::istrstream::~istrstream() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::put(char) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::write(const char*,long) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::ostrstream::~ostrstream() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
[Hint: static member std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref must be defined in the program]
std::basic_ostream<char,std::char_traits<char> >&std::operator<<(std::basic_ostream<char,std::char_traits<char> >&,char) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
__rwstd::except_msg_string::except_msg_string(unsigned,...) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
__rwstd::__rwse_InvalidSizeParam /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
[Hint: static member __rwstd::__rwse_InvalidSizeParam must be defined in the program]
std::ostrstream::ostrstream() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_istream<char,std::char_traits<char> >&std::basic_istream<char,std::char_traits<char> >::read(char*,long) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::length_error::~length_error() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::flush() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::istrstream::istrstream(const char*,long) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::operator<<(int) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
char*std::ostrstream::str() /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
__rwstd::__string_ref<char,std::char_traits<char>,std::allocator<char> >*std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__getRep(unsigned,unsigned) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
void std::vector<bool,std::allocator<bool> >::__insert_aux(std::vector<bool,std::allocator<bool> >::iterator,bool) /home/hades/users/rbajpai/Xalan/xml-xalan/c/lib/libxalan-c.so
ld: fatal: Symbol referencing errors. No output written to LoadIfwConfig.debug
*** Error code 1
clearmake: Error: Build script failed for "LoadIfwConfig.debug"
Thanks in Advance,
Best Regards,
Rakesh bajpai
Re: Compile error -inconsistent dll linkage
Posted by da...@us.ibm.com.
Hi,
You may be using Xalan's export macros for your class or function
definitions. Or, you may have preprocessor definitions from Xalan's
project files.
Make sure you are not using any of the export macros on your class
definitions or functions. These macros look like this:
XALAN_DOMSUPPORT_EXPORT
Also, make sure you do not have any of the following defines in your
project settings:
XALAN_DOMSUPPORT_BUILD_DLL,
XALAN_XSLT_BUILD_DLL,
XALAN_PLATFORMSUPPORT_BUILD_DLL
XALAN_DOM_BUILD_DLL
XALAN_XALANEXTENSIONS_BUILD_DLL
XALAN_XALANSOURCETREE_BUILD_DLL
XALAN_TRANSFORMER_BUILD_DLL
XALAN_XERCESPARSERLIAISON_BUILD_DLL
XALAN_XMLSUPPORT_BUILD_DLL
XALAN_XPATH_BUILD_DLL
XALAN_XPATHCAPI_BUILD_DLL
XALAN_ALLINONE_BUILD_DLL
XALAN_EXSLT_BUILD_DLL
If you don't understand all of the details regarding exporting and
importing symbols, you should read the documentation that ships with VC++.
Dave
|---------+--------------------------->
| | "Ian Warner" |
| | <iwarner@openfox|
| | .com> |
| | |
| | 05/11/2004 02:38|
| | PM |
| | Please respond |
| | to xalan-dev |
|---------+--------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
| |
| To: <xa...@xml.apache.org> |
| cc: (bcc: David N Bertoni/Cambridge/IBM) |
| Subject: Compile error -inconsistent dll linkage |
>-------------------------------------------------------------------------------------------------------------------------------|
Hi,
does anyone know why I get these warnings when I try to compile my Xalan
implementation class?
warning C4273: 'execute' : inconsistent dll linkage. dllexport assumed
warning C4273: 'getError' : inconsistent dll linkage. dllexport assumed
warning C4273: 'clone' : inconsistent dll linkage. dllexport assumed
I'm using VC++ sp5 on Windows 2003 server with Xerces2_5 and Xalan1_8
The program links but I get "Program too big to fit in memory' when I run
it.
It's only 2500 lines so I am assuming I need to clean up the above warnings
- note - It works fine under unix
Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org