Menu

#2 [long] Problem with make.

closed-fixed
nobody
None
5
2005-05-17
2005-05-03
No

1.
GCC 4.0.0
g++ -mmmx -msse -march=pentium3 -mfpmath=sse -pipe -w
-c -Dunix -I../../include -I"" -I"/inprogress"
-o Cpp.debug.o ../../test/Cpp/Cpp.cpp
In file included from ../../test/Cpp/Cpp.cpp:49:
../../include/openrj/cpp/field.hpp:65:33: error:
stlsoft_shim_string.h: No such file or directory
../../include/openrj/cpp/field.hpp:66:35: error:
stlsoft_string_access.h: No such file or directory
In file included from ../../test/Cpp/Cpp.cpp:51:
../../include/openrj/cpp/database.hpp:67:45: error:
stlsoft/operator_bool_adaptor.hpp: No such file or
directory
../../include/openrj/cpp/field.hpp:159: error: expected
initializer before '<' token
../../include/openrj/cpp/field.hpp:195: error:
'openrj::cpp::c_str_ptr' has not been declared
../../include/openrj/cpp/database.hpp:85: error:
expected template-name before '<' token
../../include/openrj/cpp/database.hpp:85: error:
expected `{' before '<' token
../../include/openrj/cpp/database.hpp:85: error:
expected unqualified-id before '<' token
../../include/openrj/cpp/database.hpp:189: error:
invalid use of undefined type 'class
openrj::cpp::DatabaseBase'
../../include/openrj/cpp/openrj.hpp:95: error: forward
declaration of 'class openrj::cpp::DatabaseBase'
../../include/openrj/cpp/database.hpp: In constructor
'openrj::cpp::FileDatabase::FileDatabase(const char*,
unsigned int)':
../../include/openrj/cpp/database.hpp:208: error: type
'openrj::cpp::FileDatabase::parent_class_type' is not a
direct base of 'openrj::cpp::FileDatabase'
../../include/openrj/cpp/database.hpp: In member
function 'virtual void openrj::cpp::FileDatabase::Close()':
../../include/openrj/cpp/database.hpp:222: error:
'openrj::cpp::DatabaseBase' is not a base of
'openrj::cpp::FileDatabase'
../../include/openrj/cpp/database.hpp: At global scope:
../../include/openrj/cpp/database.hpp:289: error:
invalid use of undefined type 'class
openrj::cpp::DatabaseBase'
../../include/openrj/cpp/openrj.hpp:95: error: forward
declaration of 'class openrj::cpp::DatabaseBase'
../../include/openrj/cpp/database.hpp: In constructor
'openrj::cpp::MemoryDatabase::MemoryDatabase(const
char*, size_t, unsigned int)':
../../include/openrj/cpp/database.hpp:309: error: type
'openrj::cpp::MemoryDatabase::parent_class_type' is not
a direct base of 'openrj::cpp::MemoryDatabase'
../../include/openrj/cpp/database.hpp: In member
function 'virtual void
openrj::cpp::MemoryDatabase::Close()':
../../include/openrj/cpp/database.hpp:320: error:
'openrj::cpp::DatabaseBase' is not a base of
'openrj::cpp::MemoryDatabase'
../../test/Cpp/Cpp.cpp: In function 'int main_(int,
char**)':
../../test/Cpp/Cpp.cpp:219: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumLines'
../../test/Cpp/Cpp.cpp:220: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumFields'
../../test/Cpp/Cpp.cpp:221: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp:224: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp:227: error: no match for
'operator[]' in 'db[iRecord]'
../../test/Cpp/Cpp.cpp:229: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp: In function 'void usage(int,
const char*, int, int, char**)':
../../test/Cpp/Cpp.cpp:310: error: 'stlsoft_assert' was
not declared in this scope
make: *** [Cpp.debug.o] Error 1
gcc 3.4.3:
g++ -mmmx -msse -march=pentium3 -mfpmath=sse -pipe -w
-c -Dunix -I../../include -I"" -I"/inprogress"
-o Cpp.debug.o ../../test/Cpp/Cpp.cpp
In file included from ../../test/Cpp/Cpp.cpp:49:
../../include/openrj/cpp/field.hpp:65:33:
stlsoft_shim_string.h: Nie ma takiego pliku ani katalogu
../../include/openrj/cpp/field.hpp:66:35:
stlsoft_string_access.h: Nie ma takiego pliku ani katalogu
In file included from ../../test/Cpp/Cpp.cpp:49:
../../include/openrj/cpp/field.hpp:159: error: expected
init-declarator before '<' token
../../include/openrj/cpp/field.hpp:159: error: expected
`,' or `;' before '<' token
../../include/openrj/cpp/field.hpp:195: error:
`openrj::cpp::c_str_ptr' has not been declared
In file included from ../../test/Cpp/Cpp.cpp:51:
../../include/openrj/cpp/database.hpp:67:45:
stlsoft/operator_bool_adaptor.hpp: Nie ma takiego pliku
ani katalogu
In file included from ../../test/Cpp/Cpp.cpp:51:
../../include/openrj/cpp/database.hpp:85: error:
expected template-name before '<' token
../../include/openrj/cpp/database.hpp:85: error:
expected `{' before '<' token
../../include/openrj/cpp/database.hpp:85: error:
expected unqualified-id before '<' token
../../include/openrj/cpp/database.hpp:85: error:
expected `,' or `;' before '<' token
../../include/openrj/cpp/database.hpp:190: error:
invalid use of undefined type `class
openrj::cpp::DatabaseBase'
../../include/openrj/cpp/openrj.hpp:95: error: forward
declaration of `class openrj::cpp::DatabaseBase'
../../include/openrj/cpp/database.hpp: In constructor
`openrj::cpp::FileDatabase::FileDatabase(const char*,
unsigned int)':
../../include/openrj/cpp/database.hpp:208: error: type
`openrj::cpp::FileDatabase::parent_class_type' is not a
direct base of `openrj::cpp::FileDatabase'
../../include/openrj/cpp/database.hpp: In member
function `virtual void openrj::cpp::FileDatabase::Close()':
../../include/openrj/cpp/database.hpp:222: error:
`openrj::cpp::DatabaseBase' is not a base of
`openrj::cpp::FileDatabase'
../../include/openrj/cpp/database.hpp: At global scope:
../../include/openrj/cpp/database.hpp:290: error:
invalid use of undefined type `class
openrj::cpp::DatabaseBase'
../../include/openrj/cpp/openrj.hpp:95: error: forward
declaration of `class openrj::cpp::DatabaseBase'
../../include/openrj/cpp/database.hpp: In constructor
`openrj::cpp::MemoryDatabase::MemoryDatabase(const
char*, size_t, unsigned int)':
../../include/openrj/cpp/database.hpp:309: error: type
`openrj::cpp::MemoryDatabase::parent_class_type' is not
a direct base of `openrj::cpp::MemoryDatabase'
../../include/openrj/cpp/database.hpp: In member
function `virtual void
openrj::cpp::MemoryDatabase::Close()':
../../include/openrj/cpp/database.hpp:320: error:
`openrj::cpp::DatabaseBase' is not a base of
`openrj::cpp::MemoryDatabase'
../../test/Cpp/Cpp.cpp: In function `int main_(int,
char**)':
../../test/Cpp/Cpp.cpp:219: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumLines'
../../test/Cpp/Cpp.cpp:220: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumFields'
../../test/Cpp/Cpp.cpp:221: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp:224: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp:227: error: no match for
'operator[]' in 'db[iRecord]'
../../test/Cpp/Cpp.cpp:229: error: 'class
openrj::cpp::FileDatabase' has no member named
'GetNumRecords'
../../test/Cpp/Cpp.cpp: In function `void usage(int,
const char*, int, int, char**)':
../../test/Cpp/Cpp.cpp:310: error: `stlsoft_assert'
undeclared (first use this function)
../../test/Cpp/Cpp.cpp:310: error: (Each undeclared
identifier is reported only once for each function it
appears in.)
make: *** [Cpp.debug.o] B&#322;&#261;d 1
Is it unnessery use so specyfic headers?
2. Isn't simpler use autotools then 47 makefiles?
You can for example build c++ only, if you want
(--enable-cpp or something like this).

Discussion

  • Matt Wilson

    Matt Wilson - 2005-05-17

    Logged In: YES
    user_id=452543

    1. Looks like you've not got STLSoft (http://stlsoft.org/) and
    defined an environment variable STLSOFT_INCLUDE that
    points to the STLSoft library directory. Also, note that neither
    STLSoft nor Open-RJ are tested with GCC 4.0.

    2. They're all auto-generated from a single makefile template.
    I would like to eventually release the script that does it, but
    time is a factor there.

     
  • Matt Wilson

    Matt Wilson - 2005-05-17
    • status: open --> closed-fixed
     
  • Nobody/Anonymous

    Sourceforge.. Retweeted it :)

     
  • Nobody/Anonymous

    Sourceforge.. Slap-up :)

     
  • Nobody/Anonymous

    Sourceforge.. Bang-up :)