X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5717D38582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1689577166; bh=xaSPeUeov8tPvyYqFjP+kXaxsjOub3grwFSO8Yun3+c=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=s92ecVx3R3///sEzNeimM77ihjTyHdFnck7whaxjCY+GZDrJd7Dwuj5bEMVR7tsfi BuknUTzxS9vxJIPcWmaxduVxnvpGyOG1ALY4MdMdgncr8vNu4SRdD0fWI5zUsQPW55 6VmlD6aVbGVE1pxzEDfA9+bIbJy0vzlO019KuGpQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D35703858D1E X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689577126; x=1692169126; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bmfsfOTMg7L9HbarjPwKEukjkqfPKV4aY0q2V0zBw8M=; b=HLwjyih92Qzf2e3A+3dJSqmuIZ/FnYCFKxqWA68WRMM2Zou3rweYxl6rGsU0iDbfqf KgQqjlzqPrvBeRzhvjCF77fRCkFm2UGM9rFt/VdI/PBDjmS4s129PN/E194g32NJBtKo FncZ/y662Wm1Gv/+iFJ+U0VbwHcjQJMTcUy8JE+kgg7+IXQ93ueNOyuUPP5BWjNrG3I/ v2GSqjIexsP4QaPMNjwgujtdKnAIZltuDCDrxT69QW6wPttHCg+8qfwx5rbmllyHSsc+ rh5cMo3j8AYIEdkC4+OchDXcnSwlu4dKyKqLxrNwbFheE5ILRLmzucYK08ON8ImlyILS FEvw== X-Gm-Message-State: ABy/qLZAIWswNdKANg1QXZrQ53nO/hIlVxuFgGu/Iabl90qlo5HNd6h3 KtwJS/+t4krzWM98kMy0sK0P7jeDc/C0Lq8A88HSvb87/Ng= X-Google-Smtp-Source: APBJJlHzCAxVsKJdUvlJp6czw06xtfuaIyvdXW850g6MtAAvnJXCOsa2u64D1Dp/BttM703+e2rR9TrsrqBA6GGiCN8= X-Received: by 2002:a05:6402:38d:b0:51d:8967:325f with SMTP id o13-20020a056402038d00b0051d8967325fmr11018722edv.36.1689577126514; Sun, 16 Jul 2023 23:58:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 Jul 2023 09:58:35 +0300 Message-ID: Subject: Re: Linking a native msvc dll library to CYGWIN g++ compiler To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?M=C3=BCmin_A=2E_via_Cygwin?= Reply-To: =?UTF-8?B?TcO8bWluIEEu?= Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 36H6xSgK025599 Hi, reminder.. Mümin A. , 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 AYDIN > > > > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple