Error building program in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Error building program in UNIX
# 1  
Old 06-15-2015
Error building program in UNIX

I'm trying to build a program and I'm getting a series of messages that I don't understand (new to UNIX):

Code:
make[1]: Entering directory `/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/ui'
g++ -c -Wall -g -DLINUX -DREAL_TYPE=double -DNeedFuncProto   -I/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/ui -I/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/scm_init -I/usr/local/climate/netcdf/include -I/usr/lib64/qt-3.3/include -I. -I/usr/local/climate/NCL2014/RH6/include ChangeAxisScaleDlgImpl.moc.cpp
In file included from model.h:10,
                 from manager.h:15,
                 from plot.h:18,
                 from ChangeAxisScaleDlgImpl.h:5,
                 from ChangeAxisScaleDlgImpl.moc.cpp:11:
ascii_dataset.h:18: error: extra qualification ‘Ascii_Dataset::’ on member ‘Ascii_Dataset’
make[1]: *** [ChangeAxisScaleDlgImpl.moc.o] Error 1
make[1]: Leaving directory `/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/ui'
make: *** [all] Error 2

Can anyone help me decipher what this means?

Thanks!

Moderator's Comments:
Mod Comment Use code tags, thanks.

Last edited by zaxxon; 06-15-2015 at 12:10 PM..
# 2  
Old 06-15-2015
Difficult to say without seeing the code.
# 3  
Old 06-15-2015
Try removing Ascii_Dataset:: from line 18 and tell us if it gets past that file.
# 4  
Old 06-15-2015
Quote:
Originally Posted by Corona688
Difficult to say without seeing the code.
Isn't obvious?
This definitely, has to do with the improbability drive malfunctioning. Most likely, the flux capacitor burned out due to extra parameters in the Ascii_Dataset:: injector. After all, that bugger runs in quintessential phases. All that it takes is an unexpected argument and the whole thing goes south.
# 5  
Old 06-15-2015
Here is the code that's causing the error I suppose:

Code:
#ifndef ASCII_DATASET_H
#define ASCII_DATASET_H

#include "realtype.h"
#include "ncfile.h"

class Ascii_Dataset 
{

public:
    Ascii_Dataset( string filename, int type )
        : _name(filename),_type(type) {}
    Ascii_Dataset::Ascii_Dataset( int type )
        : _type(type) {}
    const string& name() const {return _name;}
    int type(){return _type;}
    
protected:
    string   _name;
    int   _type;
};

#endif // ASCII_DATASET_H


Last edited by Corona688; 06-15-2015 at 01:51 PM..
# 6  
Old 06-15-2015
Use code tags for code please. That's the Image button.


Yes, try removing the Ascii_Dataset::
# 7  
Old 06-15-2015
Thanks for your help so far! I followed your advice and had to remove things like ascii_dataset:: from three files, and now I have a new error:

Code:
In file included from field.h:13,
                 from PlistDlgImpl.cpp:10:
ncfile.h: In constructor ‘ncfile::NcAttribute<T>::NcAttribute(const std::string&, const char*)’:
ncfile.h:357: error: there are no arguments to ‘strlen’ that depend on a template parameter, so a declaration of ‘strlen’ must be available
ncfile.h:357: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
PlistDlgImpl.cpp: At global scope:
PlistDlgImpl.cpp:3: warning: ‘rcsid’ defined but not used
make[1]: *** [PlistDlgImpl.o] Error 1
make[1]: Leaving directory `/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/ui'
make: *** [all] Error 2

Any ideas on this one?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error building C program, library complication

Hi I'm relatively new to the unix environment, I'm about the install the root package from cern ROOT since I need this for a secondary program for DNA sequencing analysis. I however get into some trouble while I do this. I download the root file and ./configured it according the the macOSx64... (0 Replies)
Discussion started by: Bateman1001
0 Replies

2. UNIX for Advanced & Expert Users

Building a Unix Server from Scratch?

Hello Everyone, This post is a result of my search and quest to build a Unix Server at Home. I am familiar with the most of the systems such as, Solaris 10, HP-UX & Linux. Can somebody help me with more information about How to Build a Unix Server right from Fundamentals.... ? I have... (5 Replies)
Discussion started by: Vabiosis
5 Replies

3. Shell Programming and Scripting

Need help in building Unix script

Hi all, We have a requirement like we need to create a program which will change a particular string in the file. For example +=KA1238767 1121 3344645 686943 22356 01 567893 12435 12121 983627 121 1092 091217 02 may be for engine failure In the above file we need to change the bold string... (2 Replies)
Discussion started by: susant.igate
2 Replies

4. Shell Programming and Scripting

Need help in building Unix script

Hi all, We have a requirement like, There will be a file. For example the content will be as follows +=KA100012345678 0114092150R328abcdefgh D 345626 011409 1 2121212 232323 12121212 2323232323 1212121 We need to select the bold portion and change it to a... (11 Replies)
Discussion started by: susant.igate
11 Replies

5. UNIX for Dummies Questions & Answers

Building from scratch - UNIX

Hi! Any knows if Unix (from IBM, Sun, HP, etc) is picky on hardwares? I mean, installing Unix (not Linux) on a custom build system? Thanks. (2 Replies)
Discussion started by: genesisX
2 Replies

6. Shell Programming and Scripting

Building a Linux like LS for Unix

I'm trying to customize my environment at work in a Unix system. So I'm starting with the ls command... I'd like to make it run as the Linux ls... Even in color, if possible... My first problem is to make the file listing brake in columns... In fact, the actual ls from Unix does this, but... (3 Replies)
Discussion started by: 435 Gavea
3 Replies

7. Solaris

Error in Solaris installation over WAN(unix: Could not start init) Program terminated

I am trying to install Solaris 10 on a target machine which is t1000. ( sun4v). I have configured my jumpstart server to install solaris over WAN. when i boot my machine, the wanboot image gets downloaded properly, miniroot gets downloaded properly, but after that the process fails with the... (3 Replies)
Discussion started by: hemalsid
3 Replies

8. Shell Programming and Scripting

unix - c program sending error from DB to email

hi, i have a database table that automatically logs the errors in the database every 5 mins. what i want to happen is to come up with a program using unix-c that gets all the information from the log table, i have a flag initially set to zero which means that the error is not yet sent, the... (2 Replies)
Discussion started by: chino_52284
2 Replies

9. UNIX for Advanced & Expert Users

building flat files in unix and importing them from windows

what is a flat file in unix? i have to import a unix flat files from windows based programme. my question is not to export from unix but only to import from windows only. how to build that flat files? how to create export to windows how to import from windows (3 Replies)
Discussion started by: tunirayavarapu
3 Replies
Login or Register to Ask a Question