Web lists-archives.org

Re: [Mingw-users] building mod_cplusplus




Hi Greg,
I made the suggested change but still no result. The output is this:

E:\c_cpp\mod_cplusplus>c:\MinGW\bin\mingw32-make.exe -f Makefile.txt all
g++.exe --verbose -shared -o mod_cplusplus.so src/request_env.o 
src/apache_filters.o src/apache_handler.o src/apache_output_buffer.o 
src/apache_p
rotocol.o src/cpp_request.o src/cpp_server.o src/env_hash.o 
src/env_value.o src/mod_cplusplus.o  -L"C:/MinGW/lib" -L"C:/Program 
Files/Apache Software Foundation/Apache2.2/lib" -lapr-1 -lhttpd

Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld 
--with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw 
--enable-threads --disable-nls 
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry 
--disable-shared --enable-sjlj-exceptions --enable-libgcj 
--disable-java-awt --without-x --enable-java-gc=boehm 
--disable-libgcj-debug --enable-interpreter 
--enable-hash-synchronization --enable-libstdcxx-debug

Thread model: win32
gcc version 3.4.5 (mingw special)
 C:/MinGW/bin/../libexec/gcc/mingw32/3.4.5/collect2.exe --shared 
-Bdynamic -e _DllMainCRTStartup@12 --enable-auto-image-base -o 
mod_cplusplus.so

C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../dllcrt2.o 
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o -LC:/MinGW/lib 
-LC:/Program Files/Apache Software Foundation/Apache2.2/lib 
-LC:/MinGW/bin/../lib/gcc/mingw32/3.4.5 -LC:/MinGW/bin/../lib/gcc 
-LC:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib 
-LC:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../.. src/request_env.o 
src/apache_filters.o src/apache_handler.o src/apache_output_buffer.o 
src/apache_protocol.o src/cpp_request.o src/cpp_server.o src/env_hash.o 
src/env_value.o src/mod_cplusplus.o -lapr-1 -lhttpd -lstdc++
-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 
-ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt 
C:/MinGW/bin
/../lib/gcc/mingw32/3.4.5/crtend.o
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -lhttpd
collect2: ld returned 1 exit status
mingw32-make: *** [mod_cplusplus.so] Error 1

Any other idea?


Greg Chicares írta:
> On 2008-01-14 09:09Z, grafl@xxxxxxxxxxxx wrote:
> [...]
>   
>> ld.exe -o mod_cplusplus.so src/request_env.o src/apache_filters.o  
>>     
> [...]
>   
>> src/mod_cplusplus.o  -L"C:/MinGW/lib" -L"C:/Program Files/Apache  
>> Software Foundation/Apache2.2/bin" -lapr-1 -lhttpd
>> src/request_env.o:request_env.cpp:(.text+0xd): undefined reference to  
>> `std::string::size() const'
>>     
>
> It looks like you're trying to link a C++ program using 'ld'.
> Use 'g++' instead; it links your code with the C++ libraries.
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@xxxxxxxxxxxxxxxxxxxxx
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
>   


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users