Sponsored Content
Full Discussion: How do I declare boost?
Top Forums UNIX for Dummies Questions & Answers How do I declare boost? Post 302631523 by Tyler_92 on Friday 27th of April 2012 11:50:00 AM
Old 04-27-2012
Okay here is some of the code from "VDBException.h", with lines 19, 20, 43, 53, and 55 bolded:
Code:
/*
 * Class for VERITAS database error exceptions.
 * Can be caught as VException or VDBException.
 */

#ifndef VDBEXCEPTION_HH
#define VDBEXCEPTION_HH

#include <string>
#include <ostream>
#include <mysql.h>
#include "exception.h"


class VDBException:public VException {

public:

  VDBException(MYSQL * myconn, const char *query, const char *msg);
  VDBException(MYSQL * myconn, const char *msg);
  VDBException(const char *query, const char *msg);
  VDBException(const char *msg);

  ~VDBException() throw() {};

  void printTypeSpecificExceptionDetails(std::ostream & out) const;

protected:

  unsigned int mysql_error_number;
  std::string mysql_error_text;
  std::string mysql_query;
  bool has_error;
  bool has_query;

};


class VDBDeadlock:public VDBException {

public:

  VDBDeadlock(MYSQL * myconn, const char *query, const char *msg):
    VDBException(myconn, query, msg) {}

};


class VDBSystemException:public VDBException {

public:

  VDBSystemException(MYSQL * myconn, const char *query, const char *msg):
    VDBException(myconn, query, msg) {}
  VDBSystemException(MYSQL * myconn, const char *msg):
    VDBException(myconn, msg) {}




Each of the other erroneous lines from the code are similar. The error was

error: expected `)' before '*' token

What should I do to resolve this?
Thanks
Tyler
Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 04-27-2012 at 01:02 PM..
 

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
updaters(4)							   File Formats 						       updaters(4)

NAME
updaters - configuration file for NIS updating SYNOPSIS
/var/yp/updaters DESCRIPTION
The file /var/yp/updaters is a makefile (see make(1S)) which is used for updating the Network Information Service (NIS) databases. Data- bases can only be updated in a secure network, that is, one that has a publickey(4) database. Each entry in the file is a make target for a particular NIS database. For example, if there is an NIS database named passwd.byname that can be updated, there should be a make target named passwd.byname in the updaters file with the command to update the file. The information necessary to make the update is passed to the update command through standard input. The information passed is described below (all items are followed by a NEWLINE except for 4 and 6): 1. Network name of client wishing to make the update (a string). 2. Kind of update (an integer). 3. Number of bytes in key (an integer). 4. Actual bytes of key. 5. Number of bytes in data (an integer). 6. Actual bytes of data. After receiving this information through standard input, the command to update the particular database determines whether the user is allowed to make the change. If not, it exits with the status YPERR_ACCESS. If the user is allowed to make the change, the command makes the change and exits with a status of zero. If there are any errors that may prevent the updaters from making the change, it should exit with the status that matches a valid NIS error code described in <rpcsvc/ypclnt.h>. FILES
/var/yp/updaters The makefile used for updating the NIS databases. SEE ALSO
make(1S), rpc.ypupdated(1M), publickey(4) NOTES
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same; only the name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications plc, and may not be used without permission. SunOS 5.10 24 Oct 1996 updaters(4)
All times are GMT -4. The time now is 02:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy