public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compile problem
@ 2007-02-12 23:53 Chris Bruno
  2007-02-13  0:03 ` Blake Huff
  2007-02-13  8:42 ` Grigory Zagorodnev
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Bruno @ 2007-02-12 23:53 UTC (permalink / raw)
  To: gcc-help

Hello all,

I have just tried to compile a simple "Hello World" program in C, but it
failed to do so.
source code:
 #include <stdio.h>

int main()
{
	printk("Hello World!\n");
	getchar();
	return 0;
}

error message:
------@--------------:~/Programs/C$ gcc hello.c
hello.c:1:20: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: warning: incompatible implicit declaration of built-in
function ‘printf’


I then changed 'printf' to 'printk' in the source code and got this
error message only:
------@--------------:~/Programs/C$ gcc hello.c
hello.c:1:20: error: stdio.h: No such file or directory


I'm using a fresh install of Ubuntu Edgy Eft (6.10), and it has gcc 4.1
installed.

-chris


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Compile problem
@ 2006-01-28 15:52 CodeHeads
  2006-01-28 16:49 ` Sven Eschenberg
  0 siblings, 1 reply; 10+ messages in thread
From: CodeHeads @ 2006-01-28 15:52 UTC (permalink / raw)
  To: GCC-Help

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

Hello all,

I have a problem compiling a program. It is for archiving ezmlm lists.

This is the error:
/usr/bin/ld: cannot find -lbg-sysdeps
collect2: ld returned 1 exit status

Here a piece of the makefile where it is generating the error:
globals.pyc: globals.py
	python -c '__import__("globals")'

load: conf-ld conf-bglibs
	( bglibs=`head -n 1 conf-bglibs`; \
	  echo '#!/bin/sh';\
	  echo 'main="$$1"; shift';\
	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" '-o "$$main"
"$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
	) >load
	chmod 755 load

main.pyc: main.py
	python -c '__import__("main")'

I searched google, rpm.bone and could not come up with anything. I am
using fedora 4 with gcc 4.0.2-8 and python 2.4.1-2

How can I fix this?

-- 
Best regards,
~WILL~
Public Key: 0xC8E166BB
Key: http://code-heads.com/keys/ch1.asc
Linux Registered User: 406084

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <39dc493204092210301676ed7e@mail.gmail.com>]
* compile problem
@ 2000-12-10 19:23 Thiemo Nagel
  2000-12-11  7:37 ` Alexandre Oliva
  0 siblings, 1 reply; 10+ messages in thread
From: Thiemo Nagel @ 2000-12-10 19:23 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

Hi,

can anybody help? I get the following error on "make bootstrap"

[..]
/root/gcc-2.95.2/gcc/xgcc -B/root/gcc-2.95.2/gcc/
-B/usr/local/i586-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks
-D_GNU_SOURCE
-fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO indstream.cc
indstream.cc: In method `struct streampos indirectbuf::seekoff(long long
int, ios::seek_dir, int = 3)':
indstream.cc:82: `struct streampos' used where a `int' was expected
indstream.cc:85: `struct streampos' used where a `int' was expected
indstream.cc:87: `struct streampos' used where a `int' was expected
indstream.cc:89: conversion from `int' to non-scalar type `streampos'
requested
indstream.cc: In method `struct streampos
indirectbuf::seekpos(_G_fpos64_t,
int = 3)':
indstream.cc:99: `struct streampos' used where a `int' was expected
indstream.cc:102: `struct streampos' used where a `int' was expected
indstream.cc:104: `struct streampos' used where a `int' was expected
indstream.cc:106: conversion from `int' to non-scalar type `streampos'
requestedmake[2]: *** [indstream.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
»/root/gcc-2.95.2/i586-pc-linux-gnu/libio«
make[1]: *** [all-target-libio] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis »/root/gcc-2.95.2«
make: *** [bootstrap-lean] Fehler 2

... and I don't know what to do, apparently...
I use Redhat 7.0 with kernel 2.4 test 11 and was currently trying to get
myself gcc 2.95.2 instead of gcc 2.96

thank you for your time,

Thiemo Nagel

-- 
Sent through GMX FreeMail - http://www.gmx.net

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

end of thread, other threads:[~2007-02-13  6:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 23:53 compile problem Chris Bruno
2007-02-13  0:03 ` Blake Huff
2007-02-13  8:42 ` Grigory Zagorodnev
  -- strict thread matches above, loose matches on Subject: below --
2006-01-28 15:52 Compile problem CodeHeads
2006-01-28 16:49 ` Sven Eschenberg
2006-01-28 17:37   ` CodeHeads
2006-01-28 18:32     ` Sven Eschenberg
     [not found] <39dc493204092210301676ed7e@mail.gmail.com>
2004-09-22 17:40 ` Compile Problem Adam McCarthy
2000-12-10 19:23 compile problem Thiemo Nagel
2000-12-11  7:37 ` Alexandre Oliva

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