public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Cannot compile my first Cygwin program
@ 2002-10-29 20:47 Dockeen
  0 siblings, 0 replies; 11+ messages in thread
From: Dockeen @ 2002-10-29 20:47 UTC (permalink / raw)
  To: cygwin

Max Bowsher made a very important point from a diagnostic point, 
he said:

"Run the command "gcc -v" and post the output."

This may give a tipoff if something is wrong with your gcc install.
Also run:

which gcc

and give the results.  This will tell us where gcc is coming from,
and whether there might be interference from somewhere.

By the way, did you try the suggestion to reinstall gcc (which
is in the devel category)???

Wayne Keen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-30  5:24 ` Janos Blazi
@ 2002-10-30  6:54   ` David Starks-Browning
  0 siblings, 0 replies; 11+ messages in thread
From: David Starks-Browning @ 2002-10-30  6:54 UTC (permalink / raw)
  To: Janos Blazi; +Cc: cygwin

On Wednesday 30 Oct 02, Janos Blazi writes:
> Now everything works.
> ...
> and I could compile my test.cpp.

Congratulations.  Now for the next lesson:  don't call your test
application "test" (or test.exe).  You will probably have difficulty
distinguishing it from the bash shell builtin "test" and
/usr/bin/test.

Regards,
David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-30  3:44 Max Bowsher
@ 2002-10-30  5:24 ` Janos Blazi
  2002-10-30  6:54   ` David Starks-Browning
  0 siblings, 1 reply; 11+ messages in thread
From: Janos Blazi @ 2002-10-30  5:24 UTC (permalink / raw)
  To: cygwin

Now everything works. I knew that I had never downloaded gcc before; but I
downloaded Free Pascal maybe a year ago and they had this old version of gcc
included.
Now I get

d:\cygwin\home\Administrator\c-programme>gcc -v
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with:
/netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,java --enable-l
ibgcj --enable-threads=posix --with-system-zlib --enable-nls --without-inclu
ded-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version
-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-
cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/u
sr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --l
ibexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)

and I could compile my test.cpp.

Thank you for your help.

Janos Blazi


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
@ 2002-10-30  3:44 Max Bowsher
  2002-10-30  5:24 ` Janos Blazi
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-10-30  3:44 UTC (permalink / raw)
  To: jblazi, cygwin

>From: jblazi <jblazi@gmx.de>
>I downloaded and installed cygwin yesterday. So what exactly should I do?

Where did you download Cygwin from? 
Because that version of gcc is definitely not from any Cygwin release in the past 3 years or so.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-30  1:38       ` Max Bowsher
@ 2002-10-30  2:59         ` jblazi
  0 siblings, 0 replies; 11+ messages in thread
From: jblazi @ 2002-10-30  2:59 UTC (permalink / raw)
  To: cygwin

> Right - This version of gcc is either not from Cygwin at all, or is truly
> ancient.
> You should probably remove your Cygwin install and install the latest
> version.

I downloaded and installed cygwin yesterday. So what exactly should I do?
TIA,
-- 
Janos Blazi


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
       [not found]     ` <200210300820.31545.jblazi@gmx.de>
@ 2002-10-30  1:38       ` Max Bowsher
  2002-10-30  2:59         ` jblazi
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-10-30  1:38 UTC (permalink / raw)
  To: jblazi, cygwin

jblazi <jblazi@gmx.de> wrote:

> Thank you for your help.

No problem.

>> The -I option shouldn't be needed at all.
>
> I saw that there is no such thing in the Cygwin examples. I suspect
> that I should set some variables manually. But which ones?

None.

>> *Backslash paths* !?!?! From *Cygwin* gcc? Could you have some other
>> gcc on your Windows system?
>
> I do not understand what you mean. It plays absolutely no rôle
> whether I use \cygwin... or /cygwin...

The error messages you posted showed backslashes in the error messages.
Cygwin gcc prints forward-slash paths in its error messages.

>> Run the command "gcc -v" and post the output.
>
> Here is the output:
>
> d:\cygwin\home\Administrator\c-programme>gcc -v
> gcc -v
> Using builtin specs.
> gcc version 2.95 19990728 (release)

Right - This version of gcc is either not from Cygwin at all, or is truly
ancient.
You should probably remove your Cygwin install and install the latest
version.

>> So / = d:\cygwin, but you don't want the -I option anyway.
>
> If I do not specify -I then the include path is not found and I get
> an error message.

This indicates that your installation is broken, not that you are supposed
to supply a command line option.

Max.

PS: Please keep replies on cygwin@cygwin.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-29 17:23 ` jblazi
@ 2002-10-29 20:13   ` Max Bowsher
       [not found]     ` <200210300820.31545.jblazi@gmx.de>
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-10-29 20:13 UTC (permalink / raw)
  To: jblazi; +Cc: cygwin

jblazi <jblazi@gmx.de> wrote:

> On Tuesday 29 October 2002 22:57, Elfyn McBratney wrote:
>> Try this instead:
>>
>> gcc -I/cygwin/usr/include test.c -o test.exe
>>
>> or
>>
>> gcc test.c -o test.exe -I/cygwin/usr/include

The -I option shouldn't be needed at all.

> So I did and now I receive a different set of error messages:
>
> d:\cygwin\home\Administrator\c-programme>gcc -I/cygwin/usr/include
> test.cpp -o test
> gcc -I/cygwin/usr/include test.cpp -o test
> In file included from test.cpp:1:
> \cygwin\usr\include\stdio.h:34: stddef.h: No such file or directory
> \cygwin\usr\include\stdio.h:37: stdarg.h: No such file or directory
> In file included from \cygwin\usr\include\sys\reent.h:14,
>                  from \cygwin\usr\include\stdio.h:45,
>                  from test.cpp:1:
> \cygwin\usr\include\sys\_types.h:22: stddef.h: No such file or
> directory In file included from \cygwin\usr\include\stdio.h:46,
>                  from test.cpp:1:
> \cygwin\usr\include\sys\types.h:59: stddef.h: No such file or
> directory

*Backslash paths* !?!?! From *Cygwin* gcc? Could you have some other gcc on
your Windows system?

Run the command "gcc -v" and post the output.

>> (by the way you don't need to add the .exe on the exec filename. and
>> just out of curiousity do you mean / instead of /cygwin?)
>
> I do not undertsnad what you mean. I installed Cygwin into d:\cygwin.

So / = d:\cygwin, but you don't want the -I option anyway.

> (The problem is that I hav no infrastructure on Windows so I change
> to Linux to answer my mails and then change back to Windows.)
> --
> Janos Blazi


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-29 15:40 Elfyn McBratney
@ 2002-10-29 17:23 ` jblazi
  2002-10-29 20:13   ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: jblazi @ 2002-10-29 17:23 UTC (permalink / raw)
  To: Elfyn McBratney; +Cc: cygwin

On Tuesday 29 October 2002 22:57, Elfyn McBratney wrote:
> Try this instead:
>
> gcc -I/cygwin/usr/include test.c -o test.exe
>
> or
>
> gcc test.c -o test.exe -I/cygwin/usr/include

So I did and now I receive a different set of error messages:

d:\cygwin\home\Administrator\c-programme>gcc -I/cygwin/usr/include test.cpp -o 
test
gcc -I/cygwin/usr/include test.cpp -o test
In file included from test.cpp:1:
\cygwin\usr\include\stdio.h:34: stddef.h: No such file or directory
\cygwin\usr\include\stdio.h:37: stdarg.h: No such file or directory
In file included from \cygwin\usr\include\sys\reent.h:14,
                 from \cygwin\usr\include\stdio.h:45,
                 from test.cpp:1:
\cygwin\usr\include\sys\_types.h:22: stddef.h: No such file or directory
In file included from \cygwin\usr\include\stdio.h:46,
                 from test.cpp:1:
\cygwin\usr\include\sys\types.h:59: stddef.h: No such file or directory


> (by the way you don't need to add the .exe on the exec filename. and just
> out of curiousity do you mean / instead of /cygwin?)

I do not undertsnad what you mean. I installed Cygwin into d:\cygwin.

> Dont know what the hell that means, can you post your source code?

The source code is something like

#include <stdio.h>

main()
{
  printf("Hello world\n");
  return 0;
}

(The problem is that I hav no infrastructure on Windows so I change to Linux 
to answer my mails and then change back to Windows.)
-- 
Janos Blazi


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
@ 2002-10-29 15:40 Elfyn McBratney
  2002-10-29 17:23 ` jblazi
  0 siblings, 1 reply; 11+ messages in thread
From: Elfyn McBratney @ 2002-10-29 15:40 UTC (permalink / raw)
  To: jblazi; +Cc: cygwin

>
>I am trying to compile my first cygwin application. Here is my command 
>line:
>
>gcc -I /cygwin/usr/include/sys test.c -o test.exe

Try this instead:

gcc -I/cygwin/usr/include test.c -o test.exe

or

gcc test.c -o test.exe -I/cygwin/usr/include

(by the way you don't need to add the .exe on the exec filename. and just 
out of curiousity do you mean / instead of /cygwin?)

Its more easier this way

>
>and I get the error message
>
>gcc: installation problem, cannot exec 'cc1.plus': No such file or 
>directory

Dont know what the hell that means, can you post your source code?

>
>Can anybody help me?
>
>TIA,
>--
>Janos Blazi
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Cannot compile my first Cygwin program
  2002-10-29 15:25 jblazi
@ 2002-10-29 15:37 ` Max Bowsher
  0 siblings, 0 replies; 11+ messages in thread
From: Max Bowsher @ 2002-10-29 15:37 UTC (permalink / raw)
  To: jblazi, cygwin

jblazi <jblazi@gmx.de> wrote:
> I am trying to compile my first cygwin application. Here is my
> command line:
>
> gcc -I /cygwin/usr/include/sys test.c -o test.exe
>
> and I get the error message
>
> gcc: installation problem, cannot exec 'cc1.plus': No such file or
> directory
>
> Can anybody help me?

You really don't give very much information. Plus, that isn't the exact
error message. Its always better to copy and paste than to retype.

The '-I /cygwin/usr/include/sys' option is very odd. You should remove it.

It's probably worth reinstalling the gcc package (Just click the twisty icon
in setup until it says Reinstall.) If that doesn't work, then here is how to
give some more information about the problem:

Send the output of the command "cygcheck -svr" to the list (in an
attachment, preferably). Also send the output of "ls -l
/usr/lib/gcc-lib/i686-pc-cygwin/*". Hint: you can just do "ls -l
/usr/lib/gcc-lib/i686-pc-cygwin/* > /dev/clipboard", and then hit paste in
your mail program.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Cannot compile my first Cygwin program
@ 2002-10-29 15:25 jblazi
  2002-10-29 15:37 ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: jblazi @ 2002-10-29 15:25 UTC (permalink / raw)
  To: cygwin

I am trying to compile my first cygwin application. Here is my command line:

gcc -I /cygwin/usr/include/sys test.c -o test.exe

and I get the error message

gcc: installation problem, cannot exec 'cc1.plus': No such file or directory

Can anybody help me?

TIA,
-- 
Janos Blazi


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-10-30 12:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29 20:47 Cannot compile my first Cygwin program Dockeen
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30  3:44 Max Bowsher
2002-10-30  5:24 ` Janos Blazi
2002-10-30  6:54   ` David Starks-Browning
2002-10-29 15:40 Elfyn McBratney
2002-10-29 17:23 ` jblazi
2002-10-29 20:13   ` Max Bowsher
     [not found]     ` <200210300820.31545.jblazi@gmx.de>
2002-10-30  1:38       ` Max Bowsher
2002-10-30  2:59         ` jblazi
2002-10-29 15:25 jblazi
2002-10-29 15:37 ` Max Bowsher

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).