Sponsored Content
Top Forums Programming Header file compilation using gcc in Sparc Solaris Post 302397981 by mrupesh74 on Tuesday 23rd of February 2010 01:32:16 PM
Old 02-23-2010
Header file compilation using gcc in Sparc Solaris

I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains
Code:
bash-3.1$ gcc LibSip.h
gcc: Compilation of header file requested

The same command is working fine in Linux
Code:
Solaris GCC Version
bash-3.1$ gcc -v
Reading specs from /usr/add-on/cygnus/gnupro-99r1/bin/../lib/gcc-lib/sparc-sun-solaris2.5.1/2.9-gnupro-99r1/specs
gcc version 2.9-gnupro-99r1

bash-3.1$ uname -a
SunOS drccd 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890


Last edited by Scott; 02-23-2010 at 02:37 PM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. Programming

gcc compilation

how can i do static compilation in gcc my gcc version is # gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/u sr/share/info --enable-shared --enable-threads=posix --disable-checking... (3 Replies)
Discussion started by: collins
3 Replies

2. Programming

compilation error in gcc

Hi, Should be too simple... I wrote a sample c++ program like #include <iostream.h> int main() {$ int ab=455; cout << ab << endl; return 1; } I am getting error like $ gcc u1.cpp Undefined first referenced ... (9 Replies)
Discussion started by: ls1429
9 Replies

3. Solaris

Compilation on SunOs5.7 using gcc 3.3.5

I have the following declaration in file named vx_solaris.h (Path : /usr/share/src/tpkgs/veritas/solaris_sparc/include/sys/fs/vx_solaris.h) typedef (*vx_creatfptr_t)(struct vnode *, char *, struct vattr *, vcexcl_t, int, struct vnode **, vx_cred_t *, int); I include vx_solaris.h in one of... (5 Replies)
Discussion started by: amitc
5 Replies

4. Programming

Compilation error on namespaces in system header debug.h

Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> . The errors I am getting are:... (4 Replies)
Discussion started by: rimon
4 Replies

5. Programming

64-Bit gcc Compilation

Hi All I have a question on the compilation Assume i am working on 64 bit Linux OS. i am making shared objects and libraries required for our project. Can i compile 32 bit libraries using gcc of 64 -bit OS? Or Is there any restriction in the 32-bit or 64-bit compilers when trying to... (6 Replies)
Discussion started by: dhanamurthy
6 Replies

6. Solaris

Installing gcc on SPARC 5.9

Hi, I am trying to install gcc on SPARC 5.9 pkgadd -d gcc-3.4.2-sol9-sparc-local i get the below error pkgadd: ERROR: attempt to process datastream failed - open of <gcc-3.4.2-sol9-sparc-local> failed, errno=2 pkgadd: ERROR: could not process datastream from... (3 Replies)
Discussion started by: saharookiedba
3 Replies

7. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

8. Solaris

Need gcc binary for a SPARC machine

The machine I am trying to compile on does have /usr/sfw/bin and all the files in it, EXCEPT gcc !! This is a SUN Sparc-1 machine, so the binary does matter to match this. Can someone send me a gcc so I can put it locally for compilation purposes? Or point me a a site that has a compiled-ready... (17 Replies)
Discussion started by: steve701
17 Replies

9. Solaris

Newly Compiled GCC 4.4.4 on Solaris sparc gives problem with -m32/-m64 flags

Hello experts, This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message: /usr/local/bin/ld: target elf32-sparc not found collect2: ld returned 1 exit status I tried every step possible thing that I could think... (2 Replies)
Discussion started by: d_shanke
2 Replies

10. AIX

Gcc compilation problem on AIX 6.1

Hi, I have to compile a program on my server, runs on AIX 6.1. On my test server the compilation is ok (AIX 6.1); but when I try it on production server, I have this gcc prog.c -o prog_out In file included from resmon.c:111: /usr/include/unistd.h:924: error: expected ')' before ' I noticed... (1 Reply)
Discussion started by: tnjulius
1 Replies
COLORGCC(1)						      General Commands Manual						       COLORGCC(1)

NAME
colorgcc - colorization wrapper for gcc SYNOPSIS
colorgcc [OPTION]... [FILENAME]... DESCRIPTION
colorgcc acts as a wrapper around gcc(1) to ease reading its output by colorizing it. OPTIONS
Since colorgcc is a wrapper around gcc(1), it has the same command line options as gcc(1). USAGE
At your shell prompt, set your CC environment variable to 'colorgcc'. This may be done in several different ways, depending on what shell you use. In a Bourne-compatible shell (bash, ash, zsh, pdksh), type: export CC="colorgcc" In a C shell variant (csh, tcsh), type: setenv CC "colorgcc" Refer to your shell's documentation for more information on setting environment variables. FILES
/etc/colorgcc/colorgccrc System-wide configuration file for colorgccrc. $HOME/.colorgccrc Personal configuration file for colorgccrc. SEE ALSO
gcc(1), colorgccrc(5) HISTORY
Jan 15 2003: Initial version of this manual-page. REPORTING BUGS
Report bugs to <jmoyers@geeks.com> AUTHORS
Jamie Moyers <jmoyers@geeks.com> is the author of colorgcc. This manual page was written by Joe Wreschnig <piman@sacredchao.net>, and modified by David Weinehall <tao@debian.org>, for the Debian GNU/Linux system (but may be used by others). COPYRIGHT
Copyright (C) 2003 Jamie Moyers This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Jan 15, 2003 COLORGCC(1)
All times are GMT -4. The time now is 05:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy