public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* cygnus
@ 1999-11-03 13:03 Inferno
  1999-11-03 13:12 ` cygnus Mumit Khan
  1999-11-30 23:28 ` cygnus Inferno
  0 siblings, 2 replies; 10+ messages in thread
From: Inferno @ 1999-11-03 13:03 UTC (permalink / raw)
  To: help-gcc

I am trying to compile some basic console apps using gcc's c++.  i would
like to be able to run the apps without the cygwin.dll file.  I have
tried using the -mno-cygwin switch when compiling but it doesn't seem to
work.  Any ideas?

Thanks,
Inferno

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 13:03 cygnus Inferno
@ 1999-11-03 13:12 ` Mumit Khan
  1999-11-03 18:41   ` cygnus Inferno
  1999-11-30 23:28   ` cygnus Mumit Khan
  1999-11-30 23:28 ` cygnus Inferno
  1 sibling, 2 replies; 10+ messages in thread
From: Mumit Khan @ 1999-11-03 13:12 UTC (permalink / raw)
  To: help-gcc

In article < 3820A2E3.D05423EA@bcpl.net >, Inferno  <esheesle@bcpl.net> wrote:
>I am trying to compile some basic console apps using gcc's c++.  i would
>like to be able to run the apps without the cygwin.dll file.  I have
>tried using the -mno-cygwin switch when compiling but it doesn't seem to
>work.  Any ideas?

And your problem is??? 

First of all, check with Cygwin mailing list or check the online archives
to see if your problem has been discussed or not (chances are that it
has, and many many times over!).

  http://sourceware.cygnus.com/cygwin/

Then again check my mno-cygwin-howto:
  
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#mno-cygwin

Regards,
Mumit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 13:12 ` cygnus Mumit Khan
@ 1999-11-03 18:41   ` Inferno
  1999-11-03 23:39     ` cygnus Martin Kahlert
  1999-11-30 23:28     ` cygnus Inferno
  1999-11-30 23:28   ` cygnus Mumit Khan
  1 sibling, 2 replies; 10+ messages in thread
From: Inferno @ 1999-11-03 18:41 UTC (permalink / raw)
  To: help-gcc

I have followed your instructions on how to get mingw libraries and compile c++
apps.  I tried to compile and i am still getting errors.  My program is:
#include <iostream.h>
void main()
{
    cout << "Test" << endl;
}

and the command lines and errors i am getting are as follows:
# gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp
# gcc -o test -mno-cygwin -L/usr/local/mingw/lib test.o
test.o(.text+0x17):test.cpp: undefined reference to `endl(ostream &)'
test.o(.text+0x24):test.cpp: undefined reference to `cout'
test.o(.text+0x29):test.cpp: undefined reference to `ostream::operator<<(char
const *)'
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In function
`_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
#

Any ideas?  I have searched through the faq etc. on cygnus site but haven't
found my exact problem.  It is a simple enough program and all files are in the
right place.  the mingw-extra file was extracted and i copied the files to the
/usr/local/mingw/lib and include folders.

Thanks,
Inferno

Mumit Khan wrote:

> In article < 3820A2E3.D05423EA@bcpl.net >, Inferno  <esheesle@bcpl.net> wrote:
> >I am trying to compile some basic console apps using gcc's c++.  i would
> >like to be able to run the apps without the cygwin.dll file.  I have
> >tried using the -mno-cygwin switch when compiling but it doesn't seem to
> >work.  Any ideas?
>
> And your problem is???
>
> First of all, check with Cygwin mailing list or check the online archives
> to see if your problem has been discussed or not (chances are that it
> has, and many many times over!).
>
>   http://sourceware.cygnus.com/cygwin/
>
> Then again check my mno-cygwin-howto:
>
>   http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#mno-cygwin
>
> Regards,
> Mumit

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 18:41   ` cygnus Inferno
@ 1999-11-03 23:39     ` Martin Kahlert
  1999-11-04 13:30       ` cygnus Inferno
  1999-11-30 23:28       ` cygnus Martin Kahlert
  1999-11-30 23:28     ` cygnus Inferno
  1 sibling, 2 replies; 10+ messages in thread
From: Martin Kahlert @ 1999-11-03 23:39 UTC (permalink / raw)
  To: help-gcc

In article < 3820F182.B96D7175@bcpl.net >,
	Inferno <esheesle@bcpl.net> writes:
> I have followed your instructions on how to get mingw libraries and compile c++
> apps.  I tried to compile and i am still getting errors.  My program is:
> #include <iostream.h>
> void main()
> {
>     cout << "Test" << endl;
> }
> 
> and the command lines and errors i am getting are as follows:
> # gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp

gcc is the C-compiler. Your source is C++, so use g++ (or if it
should be called differently in windows try gxx)
This compiler knows, which libs to include.

Hope, that helps,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 23:39     ` cygnus Martin Kahlert
@ 1999-11-04 13:30       ` Inferno
  1999-11-30 23:28         ` cygnus Inferno
  1999-11-30 23:28       ` cygnus Martin Kahlert
  1 sibling, 1 reply; 10+ messages in thread
From: Inferno @ 1999-11-04 13:30 UTC (permalink / raw)
  To: help-gcc

Actually it is still giving me errors.  I have even used the
-B/usr/local/mingw/lib/   command line given by Mumit with no luck.  Is something
wrong with the compilers for going to native win32 apps?

thanks,
Inferno

Martin Kahlert wrote:

> In article < 3820F182.B96D7175@bcpl.net >,
>         Inferno <esheesle@bcpl.net> writes:
> > I have followed your instructions on how to get mingw libraries and compile c++
> > apps.  I tried to compile and i am still getting errors.  My program is:
> > #include <iostream.h>
> > void main()
> > {
> >     cout << "Test" << endl;
> > }
> >
> > and the command lines and errors i am getting are as follows:
> > # gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp
>
> gcc is the C-compiler. Your source is C++, so use g++ (or if it
> should be called differently in windows try gxx)
> This compiler knows, which libs to include.
>
> Hope, that helps,
> Martin.
>
> --
> The early bird gets the worm. If you want something else for
> breakfast, get up later.

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-04 13:30       ` cygnus Inferno
@ 1999-11-30 23:28         ` Inferno
  0 siblings, 0 replies; 10+ messages in thread
From: Inferno @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

Actually it is still giving me errors.  I have even used the
-B/usr/local/mingw/lib/   command line given by Mumit with no luck.  Is something
wrong with the compilers for going to native win32 apps?

thanks,
Inferno

Martin Kahlert wrote:

> In article < 3820F182.B96D7175@bcpl.net >,
>         Inferno <esheesle@bcpl.net> writes:
> > I have followed your instructions on how to get mingw libraries and compile c++
> > apps.  I tried to compile and i am still getting errors.  My program is:
> > #include <iostream.h>
> > void main()
> > {
> >     cout << "Test" << endl;
> > }
> >
> > and the command lines and errors i am getting are as follows:
> > # gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp
>
> gcc is the C-compiler. Your source is C++, so use g++ (or if it
> should be called differently in windows try gxx)
> This compiler knows, which libs to include.
>
> Hope, that helps,
> Martin.
>
> --
> The early bird gets the worm. If you want something else for
> breakfast, get up later.

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 23:39     ` cygnus Martin Kahlert
  1999-11-04 13:30       ` cygnus Inferno
@ 1999-11-30 23:28       ` Martin Kahlert
  1 sibling, 0 replies; 10+ messages in thread
From: Martin Kahlert @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

In article < 3820F182.B96D7175@bcpl.net >,
	Inferno <esheesle@bcpl.net> writes:
> I have followed your instructions on how to get mingw libraries and compile c++
> apps.  I tried to compile and i am still getting errors.  My program is:
> #include <iostream.h>
> void main()
> {
>     cout << "Test" << endl;
> }
> 
> and the command lines and errors i am getting are as follows:
> # gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp

gcc is the C-compiler. Your source is C++, so use g++ (or if it
should be called differently in windows try gxx)
This compiler knows, which libs to include.

Hope, that helps,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* cygnus
  1999-11-03 13:03 cygnus Inferno
  1999-11-03 13:12 ` cygnus Mumit Khan
@ 1999-11-30 23:28 ` Inferno
  1 sibling, 0 replies; 10+ messages in thread
From: Inferno @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

I am trying to compile some basic console apps using gcc's c++.  i would
like to be able to run the apps without the cygwin.dll file.  I have
tried using the -mno-cygwin switch when compiling but it doesn't seem to
work.  Any ideas?

Thanks,
Inferno

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 13:12 ` cygnus Mumit Khan
  1999-11-03 18:41   ` cygnus Inferno
@ 1999-11-30 23:28   ` Mumit Khan
  1 sibling, 0 replies; 10+ messages in thread
From: Mumit Khan @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

In article < 3820A2E3.D05423EA@bcpl.net >, Inferno  <esheesle@bcpl.net> wrote:
>I am trying to compile some basic console apps using gcc's c++.  i would
>like to be able to run the apps without the cygwin.dll file.  I have
>tried using the -mno-cygwin switch when compiling but it doesn't seem to
>work.  Any ideas?

And your problem is??? 

First of all, check with Cygwin mailing list or check the online archives
to see if your problem has been discussed or not (chances are that it
has, and many many times over!).

  http://sourceware.cygnus.com/cygwin/

Then again check my mno-cygwin-howto:
  
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#mno-cygwin

Regards,
Mumit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cygnus
  1999-11-03 18:41   ` cygnus Inferno
  1999-11-03 23:39     ` cygnus Martin Kahlert
@ 1999-11-30 23:28     ` Inferno
  1 sibling, 0 replies; 10+ messages in thread
From: Inferno @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

I have followed your instructions on how to get mingw libraries and compile c++
apps.  I tried to compile and i am still getting errors.  My program is:
#include <iostream.h>
void main()
{
    cout << "Test" << endl;
}

and the command lines and errors i am getting are as follows:
# gcc -c -mno-cygwin -I/usr/local/mingw/include test.cpp
# gcc -o test -mno-cygwin -L/usr/local/mingw/lib test.o
test.o(.text+0x17):test.cpp: undefined reference to `endl(ostream &)'
test.o(.text+0x24):test.cpp: undefined reference to `cout'
test.o(.text+0x29):test.cpp: undefined reference to `ostream::operator<<(char
const *)'
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In function
`_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
#

Any ideas?  I have searched through the faq etc. on cygnus site but haven't
found my exact problem.  It is a simple enough program and all files are in the
right place.  the mingw-extra file was extracted and i copied the files to the
/usr/local/mingw/lib and include folders.

Thanks,
Inferno

Mumit Khan wrote:

> In article < 3820A2E3.D05423EA@bcpl.net >, Inferno  <esheesle@bcpl.net> wrote:
> >I am trying to compile some basic console apps using gcc's c++.  i would
> >like to be able to run the apps without the cygwin.dll file.  I have
> >tried using the -mno-cygwin switch when compiling but it doesn't seem to
> >work.  Any ideas?
>
> And your problem is???
>
> First of all, check with Cygwin mailing list or check the online archives
> to see if your problem has been discussed or not (chances are that it
> has, and many many times over!).
>
>   http://sourceware.cygnus.com/cygwin/
>
> Then again check my mno-cygwin-howto:
>
>   http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#mno-cygwin
>
> Regards,
> Mumit

--
"Life is the whim of several billion cells to be you for a while."
                                            --Inferno


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-03 13:03 cygnus Inferno
1999-11-03 13:12 ` cygnus Mumit Khan
1999-11-03 18:41   ` cygnus Inferno
1999-11-03 23:39     ` cygnus Martin Kahlert
1999-11-04 13:30       ` cygnus Inferno
1999-11-30 23:28         ` cygnus Inferno
1999-11-30 23:28       ` cygnus Martin Kahlert
1999-11-30 23:28     ` cygnus Inferno
1999-11-30 23:28   ` cygnus Mumit Khan
1999-11-30 23:28 ` cygnus Inferno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).