Sponsored Content
Full Discussion: Compiling C++ source file
Top Forums Programming Compiling C++ source file Post 302765327 by kristinu on Saturday 2nd of February 2013 12:50:39 AM
Old 02-02-2013
Compiling C++ source file

I am trying to compile a c++ source file print_options.cpp and getting lot of errors

Code:
g++ -I/media/ios120/chrisd/research/tomso-branches/tomso_12_05 /media/ios120/chrisd/research/tomso-branches/tomso_12_05/libs/program_options/print_options.cpp

Code:
In file included from /media/ios120/chrisd/research/tomso-branches/tomso_12_05/libs/program_options/print_options.cpp:11:0:
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:23:3: error: variable or field ‘printopt_secn’ declared void
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:23:3: error: ‘FILE’ was not declared in this scope
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:23:10: error: ‘stream’ was not declared in this scope
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:24:3: error: expected primary-expression before ‘int’
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:25:3: error: expected primary-expression before ‘const’
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:26:3: error: expected primary-expression before ‘bool’
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:35:3: error: variable or field ‘printopt_nwln’ declared void
/media/ios120/chrisd/research/tomso-branches/tomso_12_05/tomso/program_options/print_options.hpp:35:3: error: ‘FILE’ was not declared in this scope
.......

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

compiling idl file on unix

hi i need to compile idl files to convert them to classes, on Unix platform. Please tell me how to compile these files & which commands are to be used for this purpose. Thanks & Regards (6 Replies)
Discussion started by: rochitsharma
6 Replies

2. HP-UX

bash...Not found through where(compiling source file)

Hi i have compiled and installed bash 3.2 on my hp-ux parisc its in path /usr/local/pkg/bash/bin/bash .....When im search for this bash (through whereis bash) im not findind but other which i hve done in same procedure( gettext,m4) ..Im able to find through whereis search option can any1... (3 Replies)
Discussion started by: vasanthan
3 Replies

3. Programming

Problem compiling c file on unix

HI, I have a proc installation. On running the following 3 commands, I successfully get 3 C files. proc char_map=string util.pc proc char_map=string FDRFeedMain.pc proc char_map=string NonMons.pc This gives me util.c FDRFeedMain.c NonMons.c Now when i try to compile the... (6 Replies)
Discussion started by: allah_waris45
6 Replies

4. Programming

Help with Compiling large source file using g++

HI All, I m compiling a 27 MB cpp file and compiler crashes. My enviroment : RH 9, compiler g++ how i m compiling g++ -fPIC -DWITH_OPENSSL -DWITH_COOKIES -c soapC.cpp it took almost 30 -32 to throw error like report bug etc. I will post the same error, but if can any body tell how to... (2 Replies)
Discussion started by: helpmeforlinux
2 Replies

5. UNIX Desktop Questions & Answers

Solaris 10 - Compiling package from source? Different from pkgadd?

Hey everyone, I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development :) However, there's something I'm not sure... (1 Reply)
Discussion started by: agummad
1 Replies

6. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

7. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

8. UNIX for Dummies Questions & Answers

environment variables for compiling from source

Hello, I was trying to istall Gdkpixbuff 2.26.1 in my laptop ubuntu 11.10, when I did: ./configure and I got these error message *** 'pkg-config --modversion glib-2.0' returned 2.33.1, but GLIB (2.30.0) was found! If pkg-config was correct, then it is best *** to remove the old version of GLib.... (1 Reply)
Discussion started by: yifangt
1 Replies

9. Shell Programming and Scripting

Compiling source code issue

Need assistance in compile a source code with PERL flags Compile source code CDFconvert-2.2.3 which requires Fortran 90,Perl interpreter , Perl/TK module , NetCDF library , Gempak I have all the above required libraries . Issue is when compiling the source code it looks for local... (4 Replies)
Discussion started by: ajayram_arya
4 Replies

10. UNIX for Dummies Questions & Answers

Error in compiling .cpp file

I get this error, defaults.cpp: In member function ‘int Defaults::GetIntDefault(const std::string&)’: defaults.cpp:68: error: ‘atoi’ was not declared in this scope defaults.cpp: In member function ‘real_t Defaults::GetRealDefault(const std::string&)’: defaults.cpp:76: error: ‘atof’ was not... (1 Reply)
Discussion started by: bstephens
1 Replies
TAPEFS(1)						      General Commands Manual							 TAPEFS(1)

NAME
32vfs, cpiofs, tapfs, tarfs, tpfs, v6fs, v10fs - mount archival file systems SYNOPSIS
fs/32vfs [ -m mountpoint ] [ -p passwd ] [ -g group ] file fs/cpiofs fs/tapfs fs/tarfs fs/tpfs fs/v6fs fs/v10fs DESCRIPTION
These commands interpret data from traditional tape or file system formats stored in file, and mount their contents (read-only) into a Plan 9 file system. The optional -p and -g flags specify Unix-format password (respectively group) files that give the mapping between the numeric user- and group-ID numbers on the media and the strings reported by Plan 9 status inquiries. The -m flag introduces the name at which the new file system should be attached; the default is /n/tapefs. 32vfs interprets raw disk images of 32V systems, which are ca. 1978 research Unix systems for the VAX, and also pre-FFS Berkeley VAX sys- tems (1KB block size). Cpiofs interprets cpio tape images (constructed with cpio's c flag). Tarfs interprets tar tape images. Tpfs interprets tp tapes from the Fifth through Seventh Edition research Unix systems. Tapfs interprets tap tapes from the pre-Fifth Edition era. V6fs interprets disk images from the Fifth and Sixth edition research Unix systems (512B block size). V10fs interprets disk images from the Tenth Edition research Unix systems (4KB block size). SOURCE
These commands are constructed in a highly stereotyped way using the files fs.c and util.c in /sys/src/cmd/tapefs, which in turn derive substantially from ramfs(4). SEE ALSO
Section 5 passim, ramfs(4). TAPEFS(1)
All times are GMT -4. The time now is 02:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy