PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problems setting up Overloaded

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
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)
I'm using VC++ v6.0, compiling for PC with version 0.99b.
Can you please try this: Download the 0.99a version, and see if that compiles OK or gives you the same problems:

http://overloaded.pocketmatrix.com/v0.99a%20-%20July%2015th,%202002.zip

I'm sorry about all this hassle, but you're the first to report problems with the 0.99b libraries, wich is very odd.
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?
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?
yes it does... some issues as i already said but it does (for win32 only cause i think a .DLL is missing for EVC, the GPRSarm.DLL if i remember. this one is not re built in the package is it ? :) )