Got mis-sent.

Cheers, jas.

---------- Forwarded message ----------
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 28 Sep 2007 18:15:11 EDT
Subject: Issue compiling a .C file containing a xerces include...

Hello.

My .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
PATH=$PATH:$HOME/boincsrc/boinc/tools
PATH=$PATH:./
PATH=$PATH:/usr/lib64/httpd/modules/xerces/xerces-c-redhat_AS4-gcc_343/bin

LD_LIBRARY_PATH=/usr/lib64:/usr/lib64/httpd/modules/xerces/xerces-c-redhat_AS4-gcc_343/lib:$LD_LIBRARY_PATH

export PATH
export LD_LIBRARY_PATH

unset USERNAME

My (partial) source file:

#include <xercesc/util/PlatformUtils.hpp>
#include "config.h"
#include "util.h"
#include "sched_util.h"
#include "sched_msgs.h"
#include "validate_util.h"
#include "error_numbers.h"
#include "ddas_datarow.h"
#include "ddas_validator_helpers.h"
#include "ddas_definitions.h"
#include <string>
#include <vector>

XERCES_CPP_NAMESPACE_USE

int init_result(RESULT const & result, void*& data)
{
        //boinc variables
        FILE* f;
        string path;
        int retval;

        //discover the location of the result's output file
        retval = get_output_file_path(result, path);
        if (retval)
        {
                log_messages.printf
                (
                        SCHED_MSG_LOG::MSG_CRITICAL,
                        "[RESULT#%d %s] check_set: can't get output filename\n",
                        result.id,
                        result.name
                );

                return retval;
        }

        //read result into *f
        retval = try_fopen(path.c_str(), f, "r");
        if (retval)
        {

Pertinent part of result of trying to 'make' this with BOINC's Makefile:

if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../api -I../db
-I../client -I../tools -I../sched -I/usr/include/mysql -g -pipe -m64
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -pthread  -I../lib -I../api -I../db -I../client
-I../tools -I../sched -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing
-pthread -I/usr/include/mysql -I/usr/include -I/usr/include/openssl
-pthread -MT validator.o -MD -MP -MF ".deps/validator.Tpo" -c -o
validator.o validator.C; \
then mv -f ".deps/validator.Tpo" ".deps/validator.Po"; else rm -f
".deps/validator.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../api -I../db
-I../client -I../tools -I../sched -I/usr/include/mysql -g -pipe -m64
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -pthread  -I../lib -I../api -I../db -I../client
-I../tools -I../sched -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing
-pthread -I/usr/include/mysql -I/usr/include -I/usr/include/openssl
-pthread -MT validator_placeholder.o -MD -MP -MF
".deps/validator_placeholder.Tpo" -c -o validator_placeholder.o
validator_placeholder.C; \
then mv -f ".deps/validator_placeholder.Tpo"
".deps/validator_placeholder.Po"; else rm -f
".deps/validator_placeholder.Tpo"; exit 1; fi
validator_placeholder.C:2:42: xercesc/util/PlatformUtils.hpp: No such
file or directory
validator_placeholder.C:17: error: expected constructor, destructor,
or type conversion before "int"
make[2]: *** [validator_placeholder.o] Error 1
make[2]: Leaving directory `/home/boinc/boincsrc/boinc/sched'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boinc/boincsrc/boinc'
make: *** [all] Error 2


Anyhow, somehow the .hpp file isn't being seen even though I have
referenced it in my .bash_profile. I have a pre-compiled Xerces
(2.7.0) binary (part of the Redhat disto I think) which I am trying to
use to parse some XML in the BOINC environment.

So, when you find the time, help me get this sucker going. Also, if I
have left out anything necessary for diagnosis let me know and I'll
get it to you ASAP.

Thanks a lot,

Max Rupplin





________________________________
See what's new at AOL.com and Make AOL Your Homepage.

Reply via email to