I am trying to compile some code and getting lot of errors
Code:
g++ -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG -DREAL=float -DGetREAL=Getfloat -IbaseLib -Itommy -Iothers ./source/main/RayTrac.cc -o raytrac
./source/main/RayTrac.cc:36:20: error: gendef.h: No such file or directory
./source/main/RayTrac.cc:37:21: error: verbose.h: No such file or directory
./source/main/RayTrac.cc:38:20: error: dynstr.h: No such file or directory
./source/main/RayTrac.cc:39:21: error: Parsing.h: No such file or directory
In file included from ./source/main/RayTrac.cc:40:
./source/main/velmod.h:259:18: error: vect.h: No such file or directory
In file included from ./source/main/velmod.h:260,
from ./source/main/RayTrac.cc:40:
./source/main/layer.h:208:21: error: sstring.h: No such file or directory
In file included from ./source/main/layer.h:210,
from ./source/main/velmod.h:260,
from ./source/main/RayTrac.cc:40:
./source/main/linlay.h:133:20: error: interp.h: No such file or directory
In file included from ./source/main/linlay.h:134,
from ./source/main/layer.h:210,
from ./source/main/velmod.h:260,
from ./source/main/RayTrac.cc:40:
./source/main/layint.h:100:20: error: random.h: No such file or directory
In file included from ./source/main/linlay.h:135,
from ./source/main/layer.h:210,
from ./source/main/velmod.h:260,
from ./source/main/RayTrac.cc:40:
./source/main/laymod.h:119:20: error: matrix.h: No such file or directory
./source/main/layint.h:123: error: expected ‘,' or ‘...' before ‘<' token
./source/main/layint.h:123: error: ISO C++ forbids declaration of ‘Vector' with no type
./source/main/layint.h:131: error: ‘Vector' has not been declared
./source/main/layint.h:131: error: expected ‘,' or ‘...' before ‘<' token
./source/main/layint.h:135: error: ‘Vector' has not been declared
./source/main/layint.h:135: error: expected ‘,' or ‘...' before ‘<' token
./source/main/layint.h:141: error: ‘Parsing' has not been declared
./source/main/layint.h:153: error: ‘Vect2' does not name a type
./source/main/layint.h:155: error: ‘Vect2' does not name a type
./source/main/layint.h:157: error: ISO C++ forbids declaration of ‘Vector' with no type
./source/main/layint.h:157: error: expected ‘;' before ‘<' token
./source/main/layint.h:159: error: ISO C++ forbids declaration of ‘Vector' with no type
./source/main/layint.h:159: error: expected ‘;' before ‘<' token
./source/main/layint.h:162: error: ‘Parsing' has not been declared
./source/main/layint.h:180: error: variable or field ‘ReadInterface' declared void
./source/main/layint.h:180: error: ‘int LayInt::ReadInterface' is not a static member of ‘class LayInt'
./source/main/layint.h:180: error: ‘Parsing' was not declared in this scope
./source/main/layint.h:180: error: ‘P' was not declared in this scope
./source/main/layint.h:181: error: expected primary-expression before ‘const'
./source/main/layint.h:181: error: initializer expression list treated as compound expression
./source/main/layint.h:181: error: expected ‘,' or ‘;' before ‘{' token
make: *** [raytrac] Error 1
---------- Post updated at 06:20 PM ---------- Previous update was at 06:19 PM ----------
This is the makefile
Code:
#
# TOMMY - Makefile
# -History---------------------------------------------------------------
#
# V01 - DEC 1999 - Luca D'Auria
# Initial release.
# V02 - SEP 2008 - Luca Elia
# Version fixed for g++ 4.3.0.
# The following settings make it compile without warnings using:
# g++ (GCC) 3.4.5 (mingw-vista special r3)
# g++ (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
# g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
# g++ (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502
# The -enable-auto-import bit is needed on some newer gcc version.
# Enable optimizations and disable debug checks so that the final
# executable can run faster (up to twice as fast).
# V03 - NOV 2008 - Christopher Dimech
# Code restructuring.
#
# -----------------------------------------------------------------------
# GNU Compiler flags
C++ = g++
OPT = -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG
DEF = -DREAL=float -DGetREAL=Getfloat
# OPT = -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG
# -enable-auto-import
# DEF = -DREAL=double -DGetREAL=Getdouble
# Directories
B = ./source/baseLib
T = ./source/main
O = ./source/others
IDIR = -IbaseLib -Itommy -Iothers
all : raytrac tdarwin tsimplex getvel getpdf getmisf tracepdf
# TOMMY files
raytrac : $(T)/RayTrac.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/RayTrac.cc -o raytrac
-mv raytrac ./bin
tdarwin : $(T)/Tdarwin.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/Tdarwin.cc -o tdarwin
-mv tdarwin ./bin
tsimplex : $(T)/Tsimplex.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/Tsimplex.cc -o tsimplex
-mv tsimplex ./bin
getvel : $(T)/Getvel.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/Getvel.cc -o getvel
-mv getvel ./bin
getpdf : $(T)/GetPDF.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/GetPDF.cc -o getpdf
-mv getpdf ./bin
getmisf : $(T)/Getmisf.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/Getmisf.cc -o getmisf
-mv getmisf ./bin
rdt : $(T)/Rdt.cc
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/Rdt.cc -o rdt
-mv rdt ./bin
tracepdf : $(T)/TracePDF.cc baselib tommylib
$(C++) $(OPT) $(DEF) $(IDIR) $(T)/TracePDF.cc -o tracepdf
-mv tracepdf ./bin
# Libraries
baselib : $(B)/vect.h $(B)/vector.h $(B)/matrix.h $(B)/dynstr.h $(B)/sstring.h
tommylib : $(T)/layer.h $(T)/linlay.h $(T)/velmod.h
##########################################################################
Hi, i'm trying to work with a trial version of PurifyPlus 7 with fixpack 10 from Rational that needs to run over an AIX 5.3 platform, 64-bit. I had success on compiling and running the hello_world programs and even a hash test program i found over the net, but purify can achieve the same with the... (0 Replies)
Hi i am new to programming im having a bit of a problem i have installed kubuntu on my computer and i have wrote some code but when i go to compile it i get this error in the terminal
ross@ubuntu:~/cp1$ g++ -ansi -pedantic array.cpp -o array
ross@ubuntu:~/cp1$ array
The program 'array' is... (3 Replies)
Hello everyone. I just recently installed Cygwin and I am running it under Windows 7.
My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
I use Ubuntu 10.4, and I installed GNUStep, Gorm (a gui builder) and ProjectCenter (the GNU alternative to Xcode) because I want to develop Objective-C apps. I opened the ProjectCenter and I created an application that displays only an empty window. I sourced the GNUstep.sh and I compiled the app. ... (0 Replies)
Hey there,
First post here in the Unix forums, but I have used them a lot for research over the last year. Anyways, to why I'm here now:
I'm working on a project and I'll be using the AIS Parser SDK by Brian C. Lane (can't post the link, but google that and the first 8 links will be relevant) ... (4 Replies)
I hope this is the right place to post this and that I can get some help. I pretty much suck at troubleshooting build issues.
we are running oracle red-hat linux 2.6.32-200.20.1.el5uek #1 SMP Fri Oct 7 02:29:42 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
trying to build the latest stable version of... (3 Replies)
Hey guys!
To avoid :wall: for another 5 hours, I'm posting here to hopefully resolve this silly issue once and for all. I'd appreciate if you could simply provide the full makefile I should use, and then explain what does what. I've been studying dissected examples for hours now and none of it's... (3 Replies)
Hi everyone I installed OpenSuse 12.3 and many development tools but when i propose build the kernel from the source (the first step make menuconfig) i saw this:
HOSTLD scripts/kconfig/mconf
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libdl.so.2,... (2 Replies)
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)