OESF | ELSI (coming soon) | Community Links (coming soon) | LinuxPDA | Ibiblio


Welcome Guest ( Log In | Register )

> Opie-feed Gcc Compile Woes!, Help needed to set variables to compile.
post Jun 19 2006, 11:33 AM
Post #1

Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265

I'm currently trying to compile teTeX on my 5500 Zaurus (with OpenZaurus 3.5.4 installed) using the gcc files available from the Opie feed: g++ 3.4.4-r5, g++-sympinks, g++-rc 0.1.9-r1, g77 and etc, gcc and etc, and gcov. I've followed everything according to the teTeX INSTALL instructions, and when I try compiling, I get:

loading cache ./config.cache
checking whether make sets ${MAKE}... no
checking for gcc... arm-linux-gcc                                        # or whatever I set CC to be
checking whether the C compiler (arm-linux-gcc -O -g) works... no
configure:  error:  installation or configuration problem:  C compiler cannot create executables.

I've tried setting CC to gcc, cc, arm-linux-gcc, and g++, and I get the same results every time.

When I tried an even more basic program, hello.cpp, I received the following:

root@collie:  /media/card/.../tetex-src-3.0 # gcc -O -g hello.cpp
hello.cpp: 1: 22: iostream.h:  No such file or directory
hello.cpp:  In function `int main()':
hello.cpp:  5:  error: `cout' undeclared (first use of this function)
hello.cpp:  5:  error:  (Each undeclared identifier is reported only once for each function it appears in.)
hello.cpp:  8:  2:  no newline at end of file

Since I get similar results when I try to compile hello.c, I'm certain that I need to set variables for certain paths; unfortunately, I have no idea what those varialbes would be, or what paths I need to set! What do I need to do in order to compile things successfully?
Go to the top of the page
+Quote Post
Start new topic
post Jun 19 2006, 12:00 PM
Post #2

Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107

QUOTE(snowfarthing @ Jun 19 2006, 07:33 PM)
hello.cpp: 1: 22: iostream.h:  No such file or directory


You need to install the -dev package that has iostream.h
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 28th May 2017 - 10:38 AM