Linking a native msvc dll library to CYGWIN g++ compiler
Mark Geisert
mark@maxrnd.com
Mon Jul 17 08:04:34 GMT 2023
Mümin A. via Cygwin wrote:
> Hi,
>
> reminder..
>
> Mümin A. <muminaydin06@gmail.com>, 11 Tem 2023 Sal, 09:47 tarihinde şunu
> yazdı:
>
>>
>> Hi,
>>
>> I'm facing a problem while linking my native dll library into the g++
>> compiler.
>>
>> There is a name mangling problem when calling a msvc function from g++
>> compiler therefore linker gives an error undefined reference.
>>
>> Is there any method to directly link and call a function from native dll
>> library from the cygwin compiler ?
>>
>>
>>
>> For example, I've a fooCls.h header file for a windows library, I add
>> link the fooCls.dll to g++ compiler then,
>>
>> fooNameSpace::fooConnectionCls instance;
>> instance.FooTest();
>>
>> gives a linker error , undefined reference.
>>
>>
>> Thank you in advance,
>> Mumin AYDI
Did you see Csaba's reply to your initial email? Check the mail archives.
Does FAQ 6.36 describe your situation?
See the Cygwin home page https://cygwin.com for pointers to those resources.
..mark
More information about the Cygwin
mailing list