开发者

Compiling SUNDANCE 4.73 with gcc 4.5.2 on Ubuntu 64 bit

This might sound something very basic/naive.. but its been ages since I have been with C/C++ and feel lost with this..

I am busy getting started with opinionfinder, which requires me to get SUNDANCE 4.3.7. Getting to compile SUNDANCE is proving to be a bigger effort than i thought.

Following instructions, I launch the install_sundace script, but get this error... Looks like my compiling environment is not properly detected...

Few things I already tried-

  1. the install_sundance script uses c-shell. As a test, In installed C shell and tried to see if I can still get my C compilation environment fine. That works fine.

  2. I tried writing a basic program which uses at least one library other than stdio, and it works (I tried Strings.h)

The error message that I am getting - Command being run -

g++ -Wall -Wno-deprecated -pipe -g -static -I../include -DHOME=\"/media/misc/development/opinionfinder/software/sundance-4.37/\" -c -fPIC -o shared/activation.o activation.C

And the error message -

In file included from nlptypes.h:16:0,
                 from activation.h:46,
                 from activation.C:26:
../include/sunstr.h: In constructor ‘sunstr::SRef::SRef(const char*)’:
../include/sunstr.h:99:21: error: ‘strlen’ was not declared in this scope
../include/sunstr.h:102:20: error: ‘strcpy’ was not declared in this scope
../include/sunstr.h: In member function ‘void sunstr::SRef::Assign(const char*)’:
../include/sunstr.h:131:26: error: ‘strlen’ was not declared in this scope
../include/sunstr.h:136:19: error: ‘strcpy’ 开发者_如何学运维was not declared in this scope


Superficially, there appears to be a missing #include <string.h> or #include <cstring> in the sunstr.h header.

With <cstring>, you'd need some using clauses too - one for each of the two functions.

You do not add a using namespace std; clause to a header.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜