X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=FPGJYAOweXNWW/Y5 XON1KBRbv07ASJLN6bD0U/uIsNIokmfNtKyeY0fZ5tw9iY7XsO1Y0SabM+AYw3RL GM7wEI60Us1IuyzbKmdN/K6R8TyldBtmEZd7pdrbMewYyQF8Lq9glFBVm3u+1MuS cOt8auW5edfsnoJogl0k1ERP6Eg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=lo1E2MRk8AkllU9nx6pv03 7+ttw=; b=ym0EaIbr96fUF8V8cTXV98vTeIQBlENA2HF/9ECPmlYyCYVJS5sqm+ 1t9+Ojzm6km3LBwCIwlDmoMv15mnfEaAoSKAwTna9cOrWqb1Y2V1Og4FtUBQCyLt IB4arXCcEFjn31yJL3QOuYzGanH6wRgtYCqvqeMs7dOp4sfpfDo/8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_05,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=24062016, 24.06.2016, H*r:sk:mailout, H*Ad:D*t-online.de X-HELO: mailout07.t-online.de Subject: Re: Call functions from Cygwin compiled dll. To: cygwin AT cygwin DOT com References: <2049626554 DOT 59435743 DOT 1466755068540 DOT JavaMail DOT zimbra AT desy DOT de> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Fri, 24 Jun 2016 20:17:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <2049626554.59435743.1466755068540.JavaMail.zimbra@desy.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Am 24.06.2016 um 09:57 schrieb Azatyan, Anushavan: > I have build in cygwin environment my own dll which calls standard unix like functions > (fopen, fclose, fread …). I'll interrupt you right there. No, those are not "unix like functions". Those are Standard C Library functions, i.e. they're required by the definition of the C programming language itself. Unix-like functions would be the ones without the leading 'f', i.e. open(), creat(), read(), write() etc. Now the Cygwin implementations of these Standard C Library functions will have some differences in behaviour, as compared to those provided by Windows native C compilers (MSVC, MinGW*, ...). But those differences would be much easier to account for than pull in the entire Cygwin subsystem just for this. > And now I would like to attach that dll to my program which is > developed in Visual Studio environment and call some of my function from that dll. > Or I would like to call functions from my dll in Matlab mex or in LabView vi. For all those jobs you'll need a native Windows DLL. To build one inside the Cygwin universe you would use the MinGW64 cross-compilation tools. OTOH, if you already have an use MSVC, it may be better to use it for this, too. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple