help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-cgicc] Visual C++ 6.0 compiling issues


From: J Smith
Subject: Re: [help-cgicc] Visual C++ 6.0 compiling issues
Date: Mon, 01 Dec 2003 15:35:45 -0600

I just took a completely alternate route. Dev-C++. It compiled as a static library into a cgicc.a file, but when I try to #include "cgicc.a", it completely doesn't work.
Here's the log from building the static library:

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\PPaul\My Documents\cgicc-3.2.2\cgicc-3.2.2\win\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\PPaul\My Documents\cgicc-3.2.2\cgicc-3.2.2\win\Makefile.win" all ar r cgicc.a ../cgicc/Cgicc.o ../cgicc/CgiEnvironment.o ../cgicc/CgiInput.o ../cgicc/CgiUtils.o ../cgicc/FormEntry.o ../cgicc/FormFile.o ../cgicc/HTMLAttribute.o ../cgicc/HTMLAttributeList.o ../cgicc/HTMLDoctype.o ../cgicc/HTMLElement.o ../cgicc/HTMLElementList.o ../cgicc/HTTPContentHeader.o ../cgicc/HTTPCookie.o ../cgicc/HTTPHeader.o ../cgicc/HTTPHTMLHeader.o ../cgicc/HTTPPlainHeader.o ../cgicc/HTTPRedirectHeader.o ../cgicc/HTTPResponseHeader.o ../cgicc/HTTPStatusHeader.o ../cgicc/MStreamable.o

ranlib cgicc.a

Execution terminated
Compilation successful

When I tried making a DLL, I got this:

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\PPaul\My Documents\cgicc-3.2.2\cgicc-3.2.2\win\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\PPaul\My Documents\cgicc-3.2.2\cgicc-3.2.2\win\Makefile.win" all dllwrap.exe --output-def libcgicc.def --driver-name c++ --implib libcgicc.a ../cgicc/Cgicc.o ../cgicc/CgiEnvironment.o ../cgicc/CgiInput.o ../cgicc/CgiUtils.o ../cgicc/FormEntry.o ../cgicc/FormFile.o ../cgicc/HTMLAttribute.o ../cgicc/HTMLAttributeList.o ../cgicc/HTMLDoctype.o ../cgicc/HTMLElement.o ../cgicc/HTMLElementList.o ../cgicc/HTTPContentHeader.o ../cgicc/HTTPCookie.o ../cgicc/HTTPHeader.o ../cgicc/HTTPHTMLHeader.o ../cgicc/HTTPPlainHeader.o ../cgicc/HTTPRedirectHeader.o ../cgicc/HTTPResponseHeader.o ../cgicc/HTTPStatusHeader.o ../cgicc/MStreamable.o -L"C:/Dev-Cpp/lib" -o cgicc.dll

../cgicc/HTMLElement.o(.ctors+0x0):HTMLElement.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc11HTMLElementC2ERKS0_' ../cgicc/HTMLElement.o(.dtors+0x0):HTMLElement.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc11HTMLElementC2ERKS0_'

../cgicc/HTTPContentHeader.o(.ctors+0x0):HTTPContentHeader.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc17HTTPContentHeaderC2ERKSs' ../cgicc/HTTPContentHeader.o(.dtors+0x0):HTTPContentHeader.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc17HTTPContentHeaderC2ERKSs' ../cgicc/HTTPHTMLHeader.o(.ctors+0x0):HTTPHTMLHeader.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc14HTTPHTMLHeaderC2Ev' ../cgicc/HTTPHTMLHeader.o(.dtors+0x0):HTTPHTMLHeader.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc14HTTPHTMLHeaderC2Ev' ../cgicc/HTTPPlainHeader.o(.ctors+0x0):HTTPPlainHeader.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc15HTTPPlainHeaderC2Ev' ../cgicc/HTTPPlainHeader.o(.dtors+0x0):HTTPPlainHeader.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc15HTTPPlainHeaderC2Ev' ../cgicc/HTTPRedirectHeader.o(.ctors+0x0):HTTPRedirectHeader.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc18HTTPRedirectHeaderC2ERKSs' ../cgicc/HTTPRedirectHeader.o(.dtors+0x0):HTTPRedirectHeader.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc18HTTPRedirectHeaderC2ERKSs' ../cgicc/HTTPStatusHeader.o(.ctors+0x0):HTTPStatusHeader.cpp: undefined reference to `_GLOBAL__I__ZN5cgicc16HTTPStatusHeaderC2Ev' ../cgicc/HTTPStatusHeader.o(.dtors+0x0):HTTPStatusHeader.cpp: undefined reference to `_GLOBAL__D__ZN5cgicc16HTTPStatusHeaderC2Ev'

dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: c++ exited with status 1

make.exe: *** [cgicc.dll] Error 1

Execution terminated

Am I making this too hard on myself or something? Surely including the .a file should have worked. Also, I tried to delete all the std's, but I got some brand new error, and I don't remember what it was. That's why I went for a g++ type compiler.

Thanks
Peter Townsend


From: Quintin Connell <address@hidden>
To: J Smith <address@hidden>
Subject: Re: [help-cgicc] Visual C++ 6.0 compiling issues
Date: Mon, 01 Dec 2003 12:35:48 +0200 (SAST)


I would suggest you just go ahead and delete the std::'s. I had this problem too when i went to compile the new version. Suppose it wouldn't happen if VC++
was more standards compliant.

Quintin


Quoting J Smith <address@hidden>:

> 13.1 issues, in fact!
>
> --------------------Configuration: cgicc - Win32
> Debug--------------------
> Compiling...
> CgiEnvironment.cpp
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgienvironment.cpp(141)
>
> : error C2039: 'isspace' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgienvironment.cpp(161)
>
> : error C2039: 'atol' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgienvironment.cpp(176)
>
> : error C2039: 'atol' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgienvironment.cpp(256)
>
> : warning C4800: 'unsigned long' : forcing value to bool 'true' or
> 'false'
> (performance warning)
> CgiInput.cpp
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiinput.cpp(69) :
>
> error C2039: 'getenv' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiinput.cpp(69) :
>
> error C2440: 'initializing' : cannot convert from 'class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >' to
> 'char *'
>         No user-defined-conversion operator available that can perform
> this
> conversion, or the operator cannot be called
> CgiUtils.cpp
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiutils.cpp(45) :
>
> error C2039: 'toupper' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiutils.cpp(45) :
>
> error C2039: 'toupper' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiutils.cpp(65) :
>
> error C2039: 'toupper' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\cgiutils.cpp(65) :
>
> error C2039: 'toupper' : is not a member of 'std'
> FormEntry.cpp
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\formentry.cpp(46) :
>
> error C2039: 'atol' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\formentry.cpp(61) :
>
> error C2039: 'atol' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\formentry.cpp(81) :
>
> error C2039: 'atof' : is not a member of 'std'
> c:\documents and settings\peter\my
> documents\csource2\testcgi\include\cgicc-3.2.2\cgicc\formentry.cpp(95) :
>
> error C2039: 'atof' : is not a member of 'std'
> Error executing cl.exe.
>
> cgicc.dll - 13 error(s), 1 warning(s)
>
> There you go.  This is a straight, decompress into directory, open the
>
> workspace, and hit the Build DLL button.  The version number's right
> there,
> 3.2.2.  Visual C++ 6.0 enterprise edition with Service Pack 5.  Should I
> go
> ahead and apease the compiler and erase the std's, or did I miss a step
>
> somewhere?
>
> Also, about the cgiInput.cpp: I saw several posts on that, and I
> wondering
> if I could get that again here.  What I copied and pasted from them
> didn't
> work.
>
> I really want to use this library; it's so much better looking and
> appealing
> than the other ones that I found!
>
> Thanks
> Peter Townsend
>
> _________________________________________________________________
> online games and music with a high-speed Internet connection!  Prices
> start
> at less than $1 a day average.  https://broadband.msn.com (Prices may
> vary
> by service area.)
>
>
>
> _______________________________________________
> help-cgicc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc
>
>
>


_________________________________________________________________
From the hottest toys to tips on keeping fit this winter, you’ll find a
range of helpful holiday info here. http://special.msn.com/network/happyholidays.armx





reply via email to

[Prev in Thread] Current Thread [Next in Thread]