473,215 Members | 1,262 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,215 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 2701

"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. ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.