Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Cygwin and g++

Reply
Thread Tools

Cygwin and g++

 
 
Ale
Guest
Posts: n/a
 
      01-08-2008
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
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      01-08-2008
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 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.


Ah, a mention of a C++ compiler. That should constitute relevance,
right? Wrong! This is about using your build environment and tools,
and has nothing to do with C++ _langauge_.

> What's wrong?


That's simple. You're posting to the wrong newsgroup. Try 'gnu.*'
hierarchy.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


 
Reply With Quote
 
 
 
 
pigeon
Guest
Posts: n/a
 
      01-09-2008

"Victor Bazarov" <> wrote in message
news:fm0i6o$122$...
> 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-



 
Reply With Quote
 
James Kanze
Guest
Posts: n/a
 
      01-09-2008
On Jan 8, 7:44 pm, Ale <alkon...@freemail.it> wrote:

> 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:
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
 
Reply With Quote
 
James Kanze
Guest
Posts: n/a
 
      01-09-2008
On Jan 9, 2:09 am, "pigeon" <no-u...@no-email.com> wrote:
> "Victor Bazarov" <v.Abaza...@comAcast.net> wrote in message


> news:fm0i6o$122$...


> > 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:
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
 
Reply With Quote
 
Lionel B
Guest
Posts: n/a
 
      01-09-2008
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
 
Reply With Quote
 
sassa
Guest
Posts: n/a
 
      01-09-2008
On Jan 9, 10:10*am, Lionel B <m...@privacy.net> wrote:
> 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.
 
Reply With Quote
 
Lionel B
Guest
Posts: n/a
 
      01-10-2008
On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:

> On Jan 9, 10:10Â*am, Lionel B <m...@privacy.net> wrote:
>> 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
 
Reply With Quote
 
sassa
Guest
Posts: n/a
 
      01-10-2008
On Jan 10, 5:11*am, Lionel B <m...@privacy.net> wrote:
> On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
> > On Jan 9, 10:10*am, Lionel B <m...@privacy.net> wrote:
> >> 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.
 
Reply With Quote
 
Victor Bazarov
Guest
Posts: n/a
 
      01-10-2008
sassa wrote:
> On Jan 10, 5:11 am, Lionel B <m...@privacy.net> wrote:
>> On Wed, 09 Jan 2008 08:31:50 -0800, sassa wrote:
>>> On Jan 9, 10:10 am, Lionel B <m...@privacy.net> wrote:
>>>> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin and dev-c++ and after that, wxWindows (wxWidgets) Laura Lucas C++ 0 02-24-2004 09:54 PM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-05-2003 04:42 PM
WELCOME to cygwin@cygwin.com cygwin-help@cygwin.com Python 1 09-05-2003 07:46 AM
confirm unsubscribe from cygwin-announce@cygwin.com cygwin-announce-help@cygwin.com Python 0 09-05-2003 01:29 AM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-04-2003 06:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57