By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

Can we use win32 API in Cygwin compiler

P: n/a
Hello Everyone,

I am a Query regarding Cygwin Compiler. I am having two source files,
out of which one(For example MySource.c) is developed in cygwin
environment(which includes lib file also) and other(MySource.cpp) in VC
++.Net environment(along with lib and dll). The first file(MySource.c)
generates some data and the second file(MySource.cpp) takes that data
as input for further processing. My requirement is to include both
files and make a single application in Cygwin environment. So, is
there any way to build the second file(MySource.cpp) using the Library
file(Lib) and DLL file which includes WinAPI functions in Cygwin
environment. Hope you people understood
my Query. I am badly stack up at this problem. If any body could guide
me through this i will be very thankfull.

With regards,

Chandra

Feb 19 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Feb 19, 7:27 am, forquer...@gmail.com wrote:
Hello Everyone,

I am a Query regarding Cygwin Compiler. I am having two source files,
out of which one(For example MySource.c) is developed in cygwin
environment(which includes lib file also) and other(MySource.cpp) in VC
++.Net environment(along with lib and dll). The first file(MySource.c)
generates some data and the second file(MySource.cpp) takes that data
as input for further processing. My requirement is to include both
files and make a single application in Cygwin environment. So, is
there any way to build the second file(MySource.cpp) using the Library
file(Lib) and DLL file which includes WinAPI functions in Cygwin
environment. Hope you people understood
my Query. I am badly stack up at this problem. If any body could guide
me through this i will be very thankfull.
This is off-topic, try asking in a group for cygwin. My guess is that
you'll have to compile one of them as a DLL and link to that one from
the other file, look up 'extern "C"', you'll probably need it.

--
Erik Wikström

Feb 19 '07 #2

P: n/a
fo********@gmail.com wrote:
Hello Everyone,

I am a Query regarding Cygwin Compiler. I am having two source files,
out of which one(For example MySource.c) is developed in cygwin
environment(which includes lib file also) and other(MySource.cpp) in VC
++.Net environment(along with lib and dll). The first file(MySource.c)
generates some data and the second file(MySource.cpp) takes that data
as input for further processing. My requirement is to include both
files and make a single application in Cygwin environment. So, is
there any way to build the second file(MySource.cpp) using the Library
file(Lib) and DLL file which includes WinAPI functions in Cygwin
environment. Hope you people understood
my Query. I am badly stack up at this problem. If any body could guide
me through this i will be very thankfull.

With regards,

Chandra
I think the problem is the lib file. If you're prepared to do dynamic
loading of the DLL instead of using an import library I don't see the
problem. Further questions should be asked on a Windows programming
group, since this isn't a C++ question.

john
Feb 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.