Google Groups Home
Help | Sign in
lccwin32's import library function..
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
copx  
View profile
 More options Apr 18, 12:12 am
Newsgroups: comp.compilers.lcc
From: "copx" <c...@gazeta.pl>
Date: Fri, 18 Apr 2008 06:12:27 +0200
Local: Fri, Apr 18 2008 12:12 am
Subject: lccwin32's import library function..
I build DLLs using MS VC6 to shield tmy programs from the uglyness that is
Windows/C++ (DLL offers C interface to C++ Windows stuff like SAPI 5). I can
use these DLLs with mingw after importing the related import library.
However, it did not work with lccwin32 - unresolved references (compiler
cannot find any DLL functions). After a lot of head scratching I attempted
to actually use my DLLs with VC6 (instead of just using that compiler to
build them): same problem.
I eventually figured out that the problem could be fixed by specifing the
calling convention in the header file. I use the __stdcall convention for
the DLLs.
Now I wonder: why can mingw figure out the calling convention of the DLL
without any compiler specific dressing but VC6/lcc cannot?
Isn't the calling convention info stored in the lib? Do I need to turn on
some special switches to built MS import libs which work even without
specifying the calling convention in the header?
I ask because I want to use the same header for all compilers I use and
stuff like "__stdcall" breaks GCC (uses different syntax for specifying
calling conventions).

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google