473,732 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2731

"Victor Bazarov" <v.********@com Acast.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...@freem ail.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 objektorientier ter Datenverarbeitu ng
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...@com Acast.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 objektorientier ter Datenverarbeitu ng
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.n etwrote:
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.n etwrote:
>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.n etwrote:
On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
On Jan 9, 10:10*am, Lionel B <m...@privacy.n etwrote:
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.n etwrote:
>On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
>>On Jan 9, 10:10 am, Lionel B <m...@privacy.n etwrote:
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
5796
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 with a method listDirectory that gives back a list of an remote directory using pexpect. this method works in linux, it works in cygwin-python from command-line, but invoked in an Tkinter-Program i got the strange Exception:...
4
2425
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 afterwards, complains about not building with msvs v.6, since my Python distribution is built with it.
0
2334
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 using thread library.. NO, library + include
6
3558
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 -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -IlibImaging -I/usr/include/python2.3 -c encode.c -o
9
3542
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 than /cygdrive/g/cygwin/home/usr, etc. How can I find the letter of the drive, or in the above example, the letter 'g'? My program needs to run on an external media that comes with Cygwin on it. I have no control over what drive is assigned to...
4
13370
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 following classic program. $ cat hellow.cpp #include <iostream> int main (int argc, char *argv) { cout << "Hello, world" << endl;
2
3240
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 I'd like to move these to the cygwin version of python on the same system. I tried copying the PyVisa and ctypes directorices (including
4
14063
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 accesses DB2 database on windows platform hence I installed cygwin but I'm unable to connect to database as it fails with the error message. $ db2 DB21061E Command line environment not initialized.
0
3305
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. Creating an environment suitable for GMP programming. 1) Create 'cygwin' environment (see below) 2)add GMP to the cygwin directory (see below)
0
8773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9445
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9306
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9180
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.