Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Mischa" To: Subject: Developing with cygwin: library troubles Date: Thu, 31 Jul 2003 11:02:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=0.8 required=6.0 tests=SPAM_PHRASE_00_01,USER_AGENT_OUTLOOK version=2.44 X-Spam-Level: Hi I want to develop a windows program that reads the GUID from a MSI package with C. It was no problem to create an exe-file with gcc that runs on non-cygwin platforms (with -mno-cygwin). My problem is the following: I need several functions from the Msi.lib (included in Windows Installer SDK). I've created a libMsi.a with dlltool and moved it to /lib/w32api/ and linked my .o with -lmsi. Compiling and linking worked fine, but if i try to run the exe, it want to load a Msi.lib as a Dynamic Link Library. I've tried to create a DLL from the Msi.lib but then an error appears that the Function MsiOpenPackageA AT 8 could not be found. I don't see the problem, perhaps it is the convert process from the Msi.lib to the libmsi.a? Or is it impossible to use some function from a .lib-file? Please help me, i'm desperate! :-) Thanks Mischa -- 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/