delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/23/02:50:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <18604835.post@talk.nabble.com>
Date: Tue, 22 Jul 2008 23:49:56 -0700 (PDT)
From: Stefano Facchetti <s DOT facchetti AT kline DOT it>
To: cygwin AT cygwin DOT com
Subject: Re: Build problems
In-Reply-To: <488659B2.C1DDD63@dessent.net>
MIME-Version: 1.0
X-Nabble-From: s DOT facchetti AT kline DOT it
References: <18599595 DOT post AT talk DOT nabble DOT com> <488659B2 DOT C1DDD63 AT dessent DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I build my custom dll in this two step:

g++ -c festivalDll.cc -L. -lfestival -lestools -lestbase -leststring
-ltermca
p -lwinmm -I ../src/include/ -I ../../speech_tools/include/ -I ./ -o
festivalDl
l.o -mno-cygwin -I./mingw/include -L./mingw/lib/ 

g++ -shared -o festival.dll festivaldll.o -L. -lfestival -lestools -lestbase
-leststring -ltermcap -lwinmm -I ../src/include/ -I
../../speech_tools/include/
 -I ./ -mno-cygwin -I./mingw/include -L./mingw/lib/ 

Without the command: "-mno-cygwin -I./mingw/include -L./mingw/lib/" all work
well,
but when I use my custom dll from c# .NET through PInvoke tha application
freeze.

Reading on internet, I have find a suggestion: build the dll with MinGw
libs.. but I have some errors. 

Output of first command:
undefine reference to '_getservbyname'
undefine reference to '_shutdown'
and more.. 

Thanks.

-- 
View this message in context: http://www.nabble.com/Build-problems-tp18599595p18604835.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019