473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Cygwin and g++

Ale
Hi!
I need to compile with "Make" a source written for linux that I need
to execute under a Win32 system.

I tried to launch Make under cygwin, and it works fine, but it doesn't
run under Win32 without CygWin (cygwin1.dll is required, and even if I
put this file in the application PATH and in windows/system32 path,
the executable doesn't work!)

I read that I need to compile sources using MinGW g++ version, but
launching makefile after setting the MinGW/bin path in PATH enviroment
variable, I get a lot of errors.

What's wrong?

Thank you.

Ale
Jan 8 '08 #1
8 2708

"Victor Bazarov" <v.********@comAcast.netwrote in message
news:fm**********@news.datemas.de...
Ale wrote:
I need to compile with "Make" a source written for linux that I need
to execute under a Win32 system.

So far no relevance to C++ _language_... I'll hold my breath..
I tried to launch Make under cygwin, and it works fine, but it doesn't
run under Win32 without CygWin (cygwin1.dll is required, and even if I
put this file in the application PATH and in windows/system32 path,
the executable doesn't work!)

Again, no relevance to C++ _language_... Still holding my breath...
I don't know what cygwin is. Maybe I misunderstand the post. There is a
32-bit mingw c++ (g++) compiler at www.equation.com.

-pigeon-

Jan 9 '08 #2
On Jan 8, 7:44 pm, Ale <alkon...@freemail.itwrote:
I need to compile with "Make" a source written for linux that
I need to execute under a Win32 system.
I tried to launch Make under cygwin, and it works fine, but it
doesn't run under Win32 without CygWin (cygwin1.dll is
required, and even if I put this file in the application PATH
and in windows/system32 path, the executable doesn't work!)
I read that I need to compile sources using MinGW g++ version,
but launching makefile after setting the MinGW/bin path in
PATH enviroment variable, I get a lot of errors.
What's wrong?
You're asking in the wrong place? Off hand, it looks like
you're trying to mix envirionments. It's possible, but it's
generally much easier to use just a single environment: either
Cygwin, with the make and g++ from Cygwin, or MinGW, with the
make and g++ from MinGW. (One of the reasons its simpler, of
course, is that you only have one place to ask if there are
problems: on either the CygWin mail list, or on the MinGW mail
list.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jan 9 '08 #3
On Jan 9, 2:09 am, "pigeon" <no-u...@no-email.comwrote:
"Victor Bazarov" <v.Abaza...@comAcast.netwrote in message
news:fm**********@news.datemas.de...
Ale wrote:
I need to compile with "Make" a source written for linux that I need
to execute under a Win32 system.
So far no relevance to C++ _language_... I'll hold my breath..
I tried to launch Make under cygwin, and it works fine, but it doesn't
run under Win32 without CygWin (cygwin1.dll is required, and even if I
put this file in the application PATH and in windows/system32 path,
the executable doesn't work!)
Again, no relevance to C++ _language_... Still holding my breath...
I don't know what cygwin is. Maybe I misunderstand the post. There is a
32-bit mingw c++ (g++) compiler atwww.equation.com.
Very off topic, but: CygWin and MinGW/MSys are both Unix like
environments for Windows. Both provide g++, make and most of
the other tools in the Unix toolkit, and both use pretty much
the same code base. So you'd expect them to be pretty similar.
However: CygWin is large, slow and invasive; MinGW/MSys is
small, fast and unobtrusive. In addition, I found the people on
the CygWin mailing list snotty and unhelpful, where as those on
the MinGW/MSys mailing list were amongst the nicest and most
helpful I've encountered anywhere. (Just my personal
experience, of course.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jan 9 '08 #4
On Tue, 08 Jan 2008 10:44:39 -0800, Ale wrote:
Hi!
I need to compile with "Make" a source written for linux that I need to
execute under a Win32 system.

I tried to launch Make under cygwin, and it works fine, but it doesn't
run under Win32 without CygWin (cygwin1.dll is required, and even if I
put this file in the application PATH and in windows/system32 path, the
executable doesn't work!)
FWIW, I seem to recall that Cygwin versions of GCC provide a -mnocygwin
(or somesuch) switch, which compiles non-cygwin1.dll-dependent
executables - it should be pretty much the same then as using MinGW (in
fact I think Cygwin uses the MinGW GCC port).

Cheers,

--
Lionel B
Jan 9 '08 #5
On Jan 9, 10:10*am, Lionel B <m...@privacy.netwrote:
On Tue, 08 Jan 2008 10:44:39 -0800, Ale wrote:
Hi!
I need to compile with "Make" a source written for linux that I need to
execute under a Win32 system.
I tried to launch Make under cygwin, and it works fine, but it doesn't
run under Win32 without CygWin (cygwin1.dll is required, and even if I
put this file in the application PATH and in windows/system32 path, the
executable doesn't work!)

FWIW, I seem to recall that Cygwin versions of GCC provide a -mnocygwin
(or somesuch) switch, which compiles non-cygwin1.dll-dependent
executables - it should be pretty much the same then as using MinGW (in
fact I think Cygwin uses the MinGW GCC port).

Cheers,

--
Lionel B
Yes. Cygwin is not really ment to be used for a compiler so much as a
complete unix environment for windows. The compiler is just a small
component of a bigger product.
Jan 9 '08 #6
On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
On Jan 9, 10:10Â*am, Lionel B <m...@privacy.netwrote:
>On Tue, 08 Jan 2008 10:44:39 -0800, Ale wrote:
Hi!
I need to compile with "Make" a source written for linux that I need
to execute under a Win32 system.
I tried to launch Make under cygwin, and it works fine, but it
doesn't run under Win32 without CygWin (cygwin1.dll is required, and
even if I put this file in the application PATH and in
windows/system32 path, the executable doesn't work!)

FWIW, I seem to recall that Cygwin versions of GCC provide a -mnocygwin
(or somesuch) switch, which compiles non-cygwin1.dll-dependent
executables - it should be pretty much the same then as using MinGW (in
fact I think Cygwin uses the MinGW GCC port).

Cheers,

--
Lionel B
Please don't quote signatures!
Yes. Cygwin is not really ment to be used for a compiler so much as a
complete unix environment for windows. The compiler is just a small
component of a bigger product.
That's not what I meant to imply. Yes, Cygwin does serve to supply a
POSIX (i.e. Unix-like) environment on Windows systems and, as such, makes
available a GCC Windows port... which there's absolutely no reason not to
use. The point I was making is that Cygwin's GCC is also capable of
producing non-Cygwin-dependent binaries if that's what you want.

--
Lionel B
Jan 10 '08 #7
On Jan 10, 5:11*am, Lionel B <m...@privacy.netwrote:
On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
On Jan 9, 10:10*am, Lionel B <m...@privacy.netwrote:
On Tue, 08 Jan 2008 10:44:39 -0800, Ale wrote:
Hi!
I need to compile with "Make" a source written for linux that I need
to execute under a Win32 system.
I tried to launch Make under cygwin, and it works fine, but it
doesn't run under Win32 without CygWin (cygwin1.dll is required, and
even if I put this file in the application PATH and in
windows/system32 path, the executable doesn't work!)
FWIW, I seem to recall that Cygwin versions of GCC provide a -mnocygwin
(or somesuch) switch, which compiles non-cygwin1.dll-dependent
executables - it should be pretty much the same then as using MinGW (in
fact I think Cygwin uses the MinGW GCC port).
Cheers,
--
Lionel B

Please don't quote signatures!
Yes. *Cygwin is not really ment to be used for a compiler so much as a
complete unix environment for windows. *The compiler is just a small
component of a bigger product.

That's not what I meant to imply. Yes, Cygwin does serve to supply a
POSIX (i.e. Unix-like) environment on Windows systems and, as such, makes
available a GCC Windows port... which there's absolutely no reason not to
use. The point I was making is that Cygwin's GCC is also capable of
producing non-Cygwin-dependent binaries if that's what you want.
(There, I have removed the signature your highness. I hope I didnt
cause you a stroke by leaving it in the last time, since it obveously
nearly killed you. Because there is no reason otherwise that one would
care about 1 random line at the bottom of a quote).

I mainly ment that if you are not specifically looking to have a full
unix environment in windows it would be kind of a waste of resources
to install cygwin, rather than just mingw alone.
Jan 10 '08 #8
sassa wrote:
On Jan 10, 5:11 am, Lionel B <m...@privacy.netwrote:
>On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
>>On Jan 9, 10:10 am, Lionel B <m...@privacy.netwrote:
On Tue, 08 Jan 2008 10:44:39 -0800, Ale wrote:
Hi!
I need [..]
FWIW, [..]
Cheers,
>>>--
Lionel B

Please don't quote signatures!
[..]

(There, I have removed the signature your highness. I hope I didnt
cause you a stroke by leaving it in the last time, since it obveously
nearly killed you. Because there is no reason otherwise that one would
care about 1 random line at the bottom of a quote).
Now, instead of extend a simple courtesy, you've just insulted your
fellow netizen. Why??? I am really itching to know.
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 10 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jörg Maier | last post by:
Hey guys, i have a big problem using Tkinter and pexpect in cygwin. i try to program an winscp-like rsync Program for all posix Platforms (linux, macosx, cygwin). i got a class SslConnection...
4
by: Andreou Giannis | last post by:
Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install...
0
by: dw | last post by:
Pehaba, does anyone knows how to install MySQLdb on cygwin? - test device: MySQLdb 0.9.2.0 targz + cygwin 1.5.7-cr-0x9e + python 2.3.3 on cygwin + mysql 4.0.17 win32 - modified setup.py's...
6
by: Steve Holden | last post by:
Does anyone know the workaround for this error, encountered when trying to build PIL 1.1.4 from source under cygwin (Python 2.3.3)? running build_ext building '_imaging' extension gcc...
9
by: Mayer | last post by:
Hello: I'm running python under cygwin and need to find the drive letter. Cygwin has a way of calling my drives by a name relative to the Cygwin directory, so I get things like /home/user rather...
4
by: goberle | last post by:
I have installed the Cygwin package under WinXP. I am trying to insure that I have a reasonable development environment, and that things are working properly, by trying to compile and run the...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.