FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make fastcgi working

 
Post new topic   Reply to topic     Forum Index -> FastCGI4D
View previous topic :: View next topic  
Author Message
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Sat Jan 03, 2009 5:50 pm    Post subject: Make fastcgi working Reply with quote

HI

I tried to compile, link and run the example: SimpleAdd.d
There is no hope.

First, I patched two classes because the version of Tango (a toString() method is needed), after I compiled the library from the C++ version of the DevKit found on the official website with a free version of VisualStudio Express and obtained a "libfcgi.lib" , and now I cannot link:
Code:

+ c:\d\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -Ic:\d\include\d -Sc:\d\lib\  -Ic:\d\include\d -Sc:\d\lib  -oqdsss_objs\D libfcgi.lib boot.d -ofSampleAdd.exe
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
libfcgi.lib
 Error 43: Not a Valid Library File
--- errorlevel 1
Command c:\d\bin\rebuild.exe returned with code -1, aborting.
Error: Command failed, aborting.


What do I have to do?
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Tue Jan 13, 2009 10:58 pm    Post subject: Reply with quote

The linker used by DMD does not recognize the object file format that Visual Studio outputs (COFF), so you can't link with libraries or object files compiled with VS without first converting to the proper format (OMF). I use the coff2omf utility that comes with the Digital Mars Extended Utility Package.

Alternatively, you could try compiling FastCGI with DMC. This will result in a library of the proper format. You could also compile FastCGI as a DLL (if it supports that option, which I can't imagine why it wouldn't) and load it manually or generate a DEF file that you can pass on the command line to DMD.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> FastCGI4D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group