This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problems setting up Overloaded


Problems setting up Overloaded

Postby Baniel » Aug 17, 2002 @ 8:28pm

Hi, I just downloaded the Overloaded library and I'm having problems getting started.
I unzipped the library and openeded the Overloaded_dist workspace.
When I tried to compile the Caverunner sample, I got these errors:
LIBCMT.lib(tolower.obj) : error LNK2005: __tolower already defined in LIBC.lib(tolower.obj)
LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in LIBC.lib(tolower.obj)
LIBCMT.lib(tolower.obj) : warning LNK4006: __tolower already defined in LIBC.lib(tolower.obj); second definition ignored
LIBCMT.lib(tolower.obj) : warning LNK4006: _tolower already defined in LIBC.lib(tolower.obj); second definition ignored
Creating library Release/Overloaded.lib and object Release/Overloaded.exp
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
../../../Common/DLL/Overloaded.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

CaveRunner.exe - 3 error(s), 124 warning(s)

When I added /NODEFAULTLIB:LIBCMT to the link settings for Overloaded DLL, it compiles ok, but crashes immediately with an access violation.
When I debug it shows the error as being in this line:
// file Overloaded.h
//! Case insensitive character traits;
struct CICharTraits : public std::char_traits< char >
{
//! Return whether c1 and c2 are equal
static bool eq( const char& c1, const char& c2 )
{
return toupper( c1 ) == toupper( c2 ); // <--
}

Can anyone tell me what I'm doing wrong?
Thanks in advance,
Eben Olson
Baniel
 


Postby Phantom » Aug 17, 2002 @ 8:43pm

Some questions:
- Wich version of VC are you using?
- Are you compiling for PPC or PC?
- I assume you're using the latest version of the libs? (0.99b)
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby Baniel » Aug 17, 2002 @ 8:49pm

I'm using VC++ v6.0, compiling for PC with version 0.99b.
Baniel
 


Postby Phantom » Aug 19, 2002 @ 9:47am

Can you please try this: Download the 0.99a version, and see if that compiles OK or gives you the same problems:



I'm sorry about all this hassle, but you're the first to report problems with the 0.99b libraries, wich is very odd.
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby Baniel » Aug 19, 2002 @ 4:22pm

with 99a I get the same link error, but when I exclude LIBCMT it compiles ok and runs for a while... it still crashes on the same line when i press connect, though.
I installed stlport a while back so I could try using pocketfrog. Could this be causing problems?
Baniel
 


Postby Phantom » Aug 19, 2002 @ 9:16pm

No, we are using stlport ourselves. I'll try to install 0.99b from the package myself tomorrow to see what is wrong.

In the meantime, can any of the other users confirm that 0.99b installs? Did anyone try a clean install, or does everyone install versions on top of eachother?
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby Lewil » Aug 20, 2002 @ 1:26am

User avatar
Lewil
pm Member
 
Posts: 108
Joined: Apr 25, 2002 @ 1:39pm


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron