ld error while making a dll for module

Pradip Jadav pradipjadav@gmail.com
Mon Jan 24 07:18:00 GMT 2005

hi all ,
here i m having a prob regarding creating a  shared dll. what exactly
is that i m having a code  which is abt a proxy server. It is linux
based source code and i m porting it to windows with the help of
CYGWIN .. Its exe is working fine ..Now i m going to create add-on
module for that project.. Its abt CLAMAV antivirus. I have all header
files, llibclamav, etc. Now when i m going  to create shared  dll
using following Makefile ::--
CXX = g++
CXXFLAGS = -g -O2 -I../../include -I. -Wall -Wno-sign-compare
-Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE
clamavlib.DLL : clamavlib.c
	${CXX} $< ${CXXFLAGS} -Wl, -shared -L. -lclamav -Wl,-soname,$@ -o $@
	rm -f libclamavlib.DLL clamavlib.DLL
It is giving me ld error which is i m attaching as a file . 
So now my question is "Is my code for makefile is correct ??" If any
solution for the error then plz help me..
-------------- next part --------------
An embedded message was scrubbed...
From: unknown sender
Subject: no subject
Date: no date
Size: 57
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050124/e076e96e/attachment.eml>
-------------- next part --------------
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list