Sponsored Content
Full Discussion: How do I declare boost?
Top Forums UNIX for Dummies Questions & Answers How do I declare boost? Post 302631151 by Tyler_92 on Friday 27th of April 2012 12:53:09 AM
Old 04-27-2012
How do I declare boost?

Hello all,
I am trying to "make" a database system, VDB (Veritas Data Base), and when I run "make" I receive the following error:

Code:
VDBException.h:19: error: expected `)' before '*' token
VDBException.h:20: error: expected `)' before '*' token
VDBException.h:43: error: expected `)' before '*' token
VDBException.h:53: error: expected `)' before '*' token
VDBException.h:55: error: expected `)' before '*' token
In file included from VDBArrayControl.h:6,
                 from VDBArrayControl.cpp:6:
VDBdatahandling.h:21: error: 'enum_field_types' has not been declared
VDBdatahandling.h:22: error: 'enum_field_types' has not been declared
VDBdatahandling.h:23: error: 'enum_field_types' has not been declared
VDBdatahandling.h:24: error: 'enum_field_types' has not been declared
VDBdatahandling.h:25: error: 'enum_field_types' has not been declared
VDBdatahandling.h:26: error: 'enum_field_types' has not been declared
VDBdatahandling.h:27: error: 'enum_field_types' has not been declared
VDBdatahandling.h:28: error: 'enum_field_types' has not been declared
VDBdatahandling.h:29: error: 'enum_field_types' has not been declared
VDBdatahandling.h:30: error: 'enum_field_types' has not been declared
VDBdatahandling.h:31: error: 'enum_field_types' has not been declared
VDBdatahandling.h:32: error: 'enum_field_types' has not been declared
In file included from VDBRow.h:19,
                 from VDBResult.h:16,
                 from VDBColumn.h:9,
                 from VDBArrayControl.cpp:7:
VDBResultHolder.h:24: error: expected `)' before '*' token
VDBResultHolder.h:42: error: use of enum 'enum_field_types' without previous declaration
VDBResultHolder.h:54: error: use of enum 'enum_field_types' without previous declaration
VDBResultHolder.h:54: error: template argument 1 is invalid
VDBResultHolder.h:54: error: template argument 2 is invalid
In file included from VDBResult.h:16,
                 from VDBColumn.h:9,
                 from VDBArrayControl.cpp:7:
VDBRow.h:27: error: 'boost' has not been declared
VDBRow.h:27: error: expected `)' before '<' token
VDBRow.h:47: error: 'boost' has not been declared
VDBRow.h:47: error: ISO C++ forbids declaration of 'shared_ptr' with no type
VDBRow.h:47: error: expected ';' before '<' token
VDBRow.h: In member function 'T VDBRow::getItem(std::string)':
VDBRow.h:58: error: 'reshldr' was not declared in this scope
VDBRow.h: In member function 'T VDBRow::getItem(int)':
VDBRow.h:76: error: use of enum 'enum_field_types' without previous declaration
VDBRow.h:76: error: invalid type in declaration before '=' token
VDBRow.h:76: error: 'reshldr' was not declared in this scope
In file included from VDBColumn.h:9,
                 from VDBArrayControl.cpp:7:
VDBResult.h: At global scope:
VDBResult.h:30: error: 'boost' has not been declared
VDBResult.h:30: error: expected `)' before '<' token
VDBResult.h:86: error: 'boost' has not been declared
VDBResult.h:86: error: ISO C++ forbids declaration of 'shared_ptr' with no type
VDBResult.h:86: error: expected ';' before '<' token
VDBResult.h:94: error: expected `)' before '*' token
VDBResult.h:121: error: 'boost' has not been declared
VDBResult.h:121: error: ISO C++ forbids declaration of 'shared_ptr' with no type
VDBResult.h:121: error: expected ';' before '<' token
make[2]: *** [libVDBnothreads_la-VDBArrayControl.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I apologize if this is a simple question, I am hardly proficient with Unix and the Command Line. What does it mean when it says that "enum_field_types" or "boost" has not been declared? I downloaded Boost C++ libraries and currently have it in "/usr/local/include". Does anyone know what this error message means, and what I can do to fix it?
Thanks in advance for any advice
-Tyler

Last edited by Corona688; 04-27-2012 at 02:17 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

File declare !

Dear all I declare like this in my program : int main(int argc ,char **argv) { FILE *ft; char* ini_file; char fbuf; char sendbuf; char strbuf; } When I compile this is the error : cc: "send.c", line 28: error 1588: "ft" undefined. (1 Reply)
Discussion started by: iwbasts
1 Replies

2. Shell Programming and Scripting

BASH : Using declare in a loop

I have a config file that needs to be formatted before it's sourced to a script. I've been formatting it with sed and dropping it in /tmp then sourcing it from there. I'd like to just format the config file with sed then declare the variables without having to create a temporary file in /tmp. So... (2 Replies)
Discussion started by: crs6785
2 Replies

3. Programming

declare a variable in mysql

i have created a script to insert 100K rows into mysql db. But the forst line where i declare the variable is giving error. I am new to mysql. Can anyone help me in this? the script is ====================================== DECLARE c INT(10) := 54; BEGIN WHILE c <... (4 Replies)
Discussion started by: amitranjansahu
4 Replies

4. Shell Programming and Scripting

Unable to declare a variable in Cygwin

I recently installed Cygwin on my windows vista to practice on Linux\unix commands. I am unable to do a simple task of declaring variables on the command prompt I am trying: $ vech=Bus $ echo $vech bash: vech : command not found What am I missing? Do i need to add something to .bashrc? ... (1 Reply)
Discussion started by: erora
1 Replies

5. UNIX for Dummies Questions & Answers

declare variable

hi to all, i am trying to declare a variable as an integer in unix shell script. i search the web for a way to do it but it doesnt work. i tried "define -i" and "declare" but that doesnt work. if somebody knows another way to declare a variable as integer please help me. thank you (2 Replies)
Discussion started by: omonoiatis9
2 Replies

6. Shell Programming and Scripting

How to declare a variable which can be accessed globally

Hi I've few shell scripts which are responsible for triggering the continuous builds for a specific module. Each shell script is for a Module. Shell script has some module specific settings in the beginning and then it triggers the builds (which are nothing but some combination of Java programs... (2 Replies)
Discussion started by: kgsrinivas
2 Replies

7. Solaris

boost thread not accessible to boost::move error

Hi All I am working unders Sun Solaris and I am not "/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>). Do you know if there are other solutions other than... (2 Replies)
Discussion started by: manustone
2 Replies

8. Shell Programming and Scripting

How to declare variables once and reuse them in other scripts?

Hello everyone. I'm trying to create a conf file with variables that my other scripts will use. I have several scripts that use the same variables, and since I don't know how to read them from an external file, i define them in each script (and then if i want to change one's value i need to... (4 Replies)
Discussion started by: moshe88
4 Replies

9. Shell Programming and Scripting

How to declare float in shellscript?

Hi All, I am having an abc.txt , which contains some digits Eg:abc.txt 14.5 56.6 95.5 I want write shellscript in suchway that if any digit is greter than 90 then it shuld display " digit is greater than 90" Please help me to do so .I have tried below code , for... (5 Replies)
Discussion started by: pspriyanka
5 Replies

10. Shell Programming and Scripting

how to declare variable in perl

how can i declare variable in perl. for BLOCK in /sys/block/emcpow* (3 Replies)
Discussion started by: learnbash
3 Replies
All times are GMT -4. The time now is 02:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy