Hello, the version I'm working right now is gcc 4.1.0! I have added some code to defineclass.cc in the directory libjava. For my code I have to include the header file "vector": first lines of defineclass.cc: // defineclass.cc - defining a class from .class format. /* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ /* Author: Kresten Krab Thorup <krab@xxxxxxx> Written using the online versions of Java Language Specification (1st ed.) and The Java Virtual Machine Specification (2nd ed.). Future work may include reading (and handling) attributes which are currently being ignored ("InnerClasses", "LineNumber", etc...). */ #include <config.h> #include <java-interp.h> #include <stdlib.h> #include <stdio.h> #include <java-cpool.h> #include <gcj/cni.h> #include <execution.h> #include <java/lang/Class.h> #include <java/lang/Float.h> #include <java/lang/Double.h> #include <java/lang/Character.h> #include <java/lang/LinkageError.h> #include <java/lang/InternalError.h> #include <java/lang/ClassFormatError.h> #include <java/lang/NoClassDefFoundError.h> #include <java/lang/ClassCircularityError.h> #include <java/lang/IncompatibleClassChangeError.h> #include <java/lang/reflect/Modifier.h> #include <java/security/ProtectionDomain.h> #include <vector> #include <openssl/rsa.h> #include <openssl/engine.h> #include <openssl/evp.h> #include <openssl/hmac.h> #include <openssl/err.h> #include <openssl/sha.h> #include <openssl/x509.h> using namespace std; using namespace gcj; Furthermore I have added something to the value of the variable DEFAULT_INCLUDES in file Makefile.in in directory libjava: DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_builddir)/gcj -I/usr/include -I$(top_builddir)/../libstdc++-v3/include The /usr/include directory is necessary for OpenSSL. Wether I add the last line (.../libstd...) or not the error is the same. He just doesn't find the header file during compilation process. error message for "make": 1. if /bin/sh ./libtool --mode=compile /home/habich/gcc-4.1.0/host-i686-pc-linux-gnu/gcc/xgcc -shared-libgcc -B/home/habich/gcc-4.1.0/host-i686-pc-linux-gnu/gcc -nostdinc++ -L/home/habich/gcc-4.1.0/i686-pc-linux-gnu/libstdc++-v3/src -L/home/habich/gcc-4.1.0/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/habich/gcc/i686-pc-linux-gnu/bin/ -B/home/habich/gcc/i686-pc-linux-gnu/lib/ -isystem /home/habich/gcc/i686-pc-linux-gnu/include -isystem /home/habich/gcc/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../.././libjava -I./include -I./gcj -I/usr/include -I./../libstdc++-v3/include -I../.././libjava -Iinclude -I../.././libjava/include -I../.././libjava/classpath/include -I../.././libjava/classpath/native/fdlibm -I../.././libjava/../boehm-gc/include -I../boehm-gc/include -I../.././libjava/libltdl -I../.././libjava/libltdl -I../.././libjava/.././libjava/../gcc -I../.././libjava/../zlib -I../.././libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -I/usr/X11R6/include -Wextra -Wall -D_GNU_SOURCE -DPREFIX="\"/home/habich/gcc\"" -DLIBDIR="\"/home/habich/gcc/lib\"" -DJAVA_HOME="\"/home/habich/gcc\"" -DBOOT_CLASS_PATH="\"/home/habich/gcc/share/java/libgcj-4.1.0.jar\"" -DJAVA_EXT_DIRS="\"/home/habich/gcc/share/java/ext\"" -DGCJ_ENDORSED_DIRS="\"/home/habich/gcc/share/java/gcj-endorsed\"" -DLIBGCJ_DEFAULT_DATABASE="\"/home/habich/gcc/lib/gcj-4.1.0/classmap.db\"" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"gcj-4.1.0/classmap.db\"" -DTOOLEXECLIBDIR="\"/home/habich/gcc/lib\"" -g -O2 -D_GNU_SOURCE -MT defineclass.lo -MD -MP -MF "$depbase.Tpo" -c -o defineclass.lo ../.././libjava/defineclass.cc; \ 2. then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi 3. /home/habich/gcc-4.1.0/host-i686-pc-linux-gnu/gcc/xgcc -shared-libgcc -B/home/habich/gcc-4.1.0/host-i686-pc-linux-gnu/gcc -nostdinc++ -L/home/habich/gcc-4.1.0/i686-pc-linux-gnu/libstdc++-v3/src -L/home/habich/gcc-4.1.0/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/habich/gcc/i686-pc-linux-gnu/bin/ -B/home/habich/gcc/i686-pc-linux-gnu/lib/ -isystem /home/habich/gcc/i686-pc-linux-gnu/include -isystem /home/habich/gcc/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../.././libjava -I./include -I./gcj -I/usr/include -I./../libstdc++-v3/include -I../.././libjava -Iinclude -I../.././libjava/include -I../.././libjava/classpath/include -I../.././libjava/classpath/native/fdlibm -I../.././libjava/../boehm-gc/include -I../boehm-gc/include -I../.././libjava/libltdl -I../.././libjava/libltdl -I../.././libjava/.././libjava/../gcc -I../.././libjava/../zlib -I../.././libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -I/usr/X11R6/include -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/home/habich/gcc\" -DLIBDIR=\"/home/habich/gcc/lib\" -DJAVA_HOME=\"/home/habich/gcc\" -DBOOT_CLASS_PATH=\"/home/habich/gcc/share/java/libgcj-4.1.0.jar\" -DJAVA_EXT_DIRS=\"/home/habich/gcc/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/home/habich/gcc/share/java/gcj-endorsed\" -DLIBGCJ_DEFAULT_DATABASE=\"/home/habich/gcc/lib/gcj-4.1.0/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.1.0/classmap.db\" -DTOOLEXECLIBDIR=\"/home/habich/gcc/lib\" -g -O2 -D_GNU_SOURCE -MT defineclass.lo -MD -MP -MF .deps/defineclass.Tpo -c ../.././libjava/defineclass.cc -fPIC -DPIC -o .libs/defineclass.o 4. In file included from ./../libstdc++-v3/include/vector:65, 5. from ../.././libjava/defineclass.cc:44: 6. ./../libstdc++-v3/include/bits/functexcept.h:41:31: error: exception_defines.h: No such file or directory 7. In file included from ./../libstdc++-v3/include/vector:66, 8. from ../.././libjava/defineclass.cc:44: 9. ./../libstdc++-v3/include/bits/stl_algobase.h:64:28: error: bits/c++config.h: No such file or directory 10. In file included from ./../libstdc++-v3/include/bits/stl_algobase.h:69, 11. from ./../libstdc++-v3/include/vector:66, 12. from ../.././libjava/defineclass.cc:44: 13. ./../libstdc++-v3/include/iosfwd:45:29: error: bits/c++locale.h: No such file or directory 14. ./../libstdc++-v3/include/iosfwd:46:25: error: bits/c++io.h: No such file or directory 15. In file included from ./../libstdc++-v3/include/vector:67, 16. from ../.././libjava/defineclass.cc:44: 17. ./../libstdc++-v3/include/bits/allocator.h:52:31: error: bits/c++allocator.h: No such file or directory 18. In file included from ./../libstdc++-v3/include/vector:68, 19. from ../.././libjava/defineclass.cc:44: 20. ./../libstdc++-v3/include/bits/stl_construct.h:65:15: error: new: No such file or directory 21. ../.././libjava/java/lang/Class.h: In member function 'java::lang::Class* java::lang::Class::getComponentType()': 22. ../.././libjava/java/lang/Class.h:354: warning: dereferencing type-punned pointer will break strict-aliasing rules 23. ./../libstdc++-v3/include/bits/allocator.h: At global scope: 24. ./../libstdc++-v3/include/bits/allocator.h:82: error: expected template-name before '<' token 25. ./../libstdc++-v3/include/bits/allocator.h:82: error: expected `{' before '<' token 26. ./../libstdc++-v3/include/bits/allocator.h:82: error: expected unqualified-id before '<' token 27. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function '_ForwardIterator std::__uninitialized_copy_aux(_InputIterator, _InputIterator, _ForwardIterator, __false_type)': 28. ./../libstdc++-v3/include/bits/stl_uninitialized.h:92: error: '__throw_exception_again' was not declared in this scope 29. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function 'void std::__uninitialized_fill_aux(_ForwardIterator, _ForwardIterator, const _Tp&, __false_type)': 30. ./../libstdc++-v3/include/bits/stl_uninitialized.h:154: error: '__throw_exception_again' was not declared in this scope 31. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function 'void std::__uninitialized_fill_n_aux(_ForwardIterator, _Size, const _Tp&, __false_type)': 32. ./../libstdc++-v3/include/bits/stl_uninitialized.h:199: error: '__throw_exception_again' was not declared in this scope 33. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator)': 34. ./../libstdc++-v3/include/bits/stl_uninitialized.h:244: error: '__throw_exception_again' was not declared in this scope 35. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function 'void std::__uninitialized_fill_a(_ForwardIterator, _ForwardIterator, const _Tp&, _Allocator)': 36. ./../libstdc++-v3/include/bits/stl_uninitialized.h:271: error: '__throw_exception_again' was not declared in this scope 37. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function 'void std::__uninitialized_fill_n_a(_ForwardIterator, _Size, const _Tp&, _Allocator)': 38. ./../libstdc++-v3/include/bits/stl_uninitialized.h:299: error: '__throw_exception_again' was not declared in this scope 39. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function '_ForwardIterator std::__uninitialized_copy_copy(_InputIterator1, _InputIterator1, _InputIterator2, _InputIterator2, _ForwardIterator, _Allocator)': 40. ./../libstdc++-v3/include/bits/stl_uninitialized.h:343: error: '__throw_exception_again' was not declared in this scope 41. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function '_ForwardIterator std::__uninitialized_fill_copy(_ForwardIterator, _ForwardIterator, const _Tp&, _InputIterator, _InputIterator, _Allocator)': 42. ./../libstdc++-v3/include/bits/stl_uninitialized.h:366: error: '__throw_exception_again' was not declared in this scope 43. ./../libstdc++-v3/include/bits/stl_uninitialized.h: In function 'void std::__uninitialized_copy_fill(_InputIterator, _InputIterator, _ForwardIterator, _ForwardIterator, const _Tp&, _Allocator)': 44. ./../libstdc++-v3/include/bits/stl_uninitialized.h:391: error: '__throw_exception_again' was not declared in this scope 45. ./../libstdc++-v3/include/bits/stl_vector.h: In member function 'void _GLIBCXX_STD::vector<_Tp, _Alloc>::_M_range_check(size_t) const': 46. ./../libstdc++-v3/include/bits/stl_vector.h:503: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 47. ./../libstdc++-v3/include/bits/stl_vector.h:503: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) 48. ./../libstdc++-v3/include/bits/stl_vector.h: In member function 'typename _GLIBCXX_STD::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer _GLIBCXX_STD::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_t, _ForwardIterator, _ForwardIterator)': 49. ./../libstdc++-v3/include/bits/stl_vector.h:777: error: '__throw_exception_again' was not declared in this scope 50. ./../libstdc++-v3/include/bits/stl_bvector.h: In member function 'void _GLIBCXX_STD::vector<bool, _Alloc>::_M_range_check(size_t) const': 51. ./../libstdc++-v3/include/bits/stl_bvector.h:619: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 52. ./../libstdc++-v3/include/bits/stl_bvector.h: In member function 'void _GLIBCXX_STD::vector<bool, _Alloc>::reserve(size_t)': 53. ./../libstdc++-v3/include/bits/stl_bvector.h:782: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 54. ./../libstdc++-v3/include/bits/vector.tcc: In member function 'void _GLIBCXX_STD::vector<_Tp, _Alloc>::reserve(size_t)': 55. ./../libstdc++-v3/include/bits/vector.tcc:72: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 56. ./../libstdc++-v3/include/bits/vector.tcc: In member function 'void _GLIBCXX_STD::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _GLIBCXX_STD::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, _GLIBCXX_STD::vector<_Tp, _Alloc> >, const _Tp&)': 57. ./../libstdc++-v3/include/bits/vector.tcc:266: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 58. ./../libstdc++-v3/include/bits/vector.tcc:296: error: '__throw_exception_again' was not declared in this scope 59. ./../libstdc++-v3/include/bits/vector.tcc: In member function 'void _GLIBCXX_STD::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename _GLIBCXX_STD::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, _GLIBCXX_STD::vector<_Tp, _Alloc> >, size_t, const _Tp&)': 60. ./../libstdc++-v3/include/bits/vector.tcc:350: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 61. ./../libstdc++-v3/include/bits/vector.tcc:377: error: '__throw_exception_again' was not declared in this scope 62. ./../libstdc++-v3/include/bits/vector.tcc: In member function 'void _GLIBCXX_STD::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename _GLIBCXX_STD::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, _GLIBCXX_STD::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': 63. ./../libstdc++-v3/include/bits/vector.tcc:449: error: there are no arguments to '__N' that depend on a template parameter, so a declaration of '__N' must be available 64. ./../libstdc++-v3/include/bits/vector.tcc:479: error: '__throw_exception_again' was not declared in this scope 65. ../.././libjava/defineclass.cc: At global scope: 66. ../.././libjava/defineclass.cc:89: error: ISO C++ forbids declaration of 'vector' with no type 67. ../.././libjava/defineclass.cc:89: error: expected ';' before '<' token 68. ../.././libjava/defineclass.cc:91: error: ISO C++ forbids declaration of 'vector' with no type 69. ../.././libjava/defineclass.cc:91: error: expected ';' before '<' token 70. ../.././libjava/defineclass.cc:93: error: ISO C++ forbids declaration of 'vector' with no type 71. ../.././libjava/defineclass.cc:93: error: expected ';' before '<' token 72. ../.././libjava/defineclass.cc:95: error: ISO C++ forbids declaration of 'vector' with no type 73. ../.././libjava/defineclass.cc:95: error: expected ';' before '<' token 74. ../.././libjava/defineclass.cc:101: error: ISO C++ forbids declaration of 'vector' with no type 75. ../.././libjava/defineclass.cc:101: error: expected ';' before '<' token 76. ../.././libjava/defineclass.cc:103: error: ISO C++ forbids declaration of 'vector' with no type 77. ../.././libjava/defineclass.cc:103: error: expected ';' before '<' token 78. ../.././libjava/defineclass.cc: In member function 'void _Jv_ClassReader::deCompositeFile(unsigned char*, FileParts*)': 79. ../.././libjava/defineclass.cc:440: error: 'struct FileParts' has no member named 'iVector' 80. ../.././libjava/defineclass.cc:445: error: 'struct FileParts' has no member named 'encKeys' 81. ../.././libjava/defineclass.cc:450: error: 'struct FileParts' has no member named 'hmac' 82. ../.././libjava/defineclass.cc:456: error: 'struct FileParts' has no member named 'encClass' 83. ../.././libjava/defineclass.cc: In member function 'void _Jv_ClassReader::doAsymmOperation(const char*, FileParts*, int, KeyParts*)': 84. ../.././libjava/defineclass.cc:469: error: 'struct FileParts' has no member named 'encKeys' 85. ../.././libjava/defineclass.cc:471: error: 'struct FileParts' has no member named 'encKeys' 86. ../.././libjava/defineclass.cc:480: error: expected primary-expression before 'else' 87. ../.././libjava/defineclass.cc:480: error: expected `;' before 'else' 88. ../.././libjava/defineclass.cc:491: error: 'struct KeyParts' has no member named 'symmKey' 89. ../.././libjava/defineclass.cc:497: error: 'struct KeyParts' has no member named 'hmacKey' 90. ../.././libjava/defineclass.cc: In member function 'void _Jv_ClassReader::doSymmOperationAndHMACValidation(KeyParts*, FileParts*, int)': 91. ../.././libjava/defineclass.cc:554: error: 'struct KeyParts' has no member named 'symmKey' 92. ../.././libjava/defineclass.cc:555: error: 'struct FileParts' has no member named 'encClass' 93. ../.././libjava/defineclass.cc:556: error: 'struct FileParts' has no member named 'iVector' 94. ../.././libjava/defineclass.cc:559: error: 'vector' was not declared in this scope 95. ../.././libjava/defineclass.cc:559: error: expected primary-expression before 'unsigned' 96. ../.././libjava/defineclass.cc:559: error: expected `;' before 'unsigned' 97. ../.././libjava/defineclass.cc:563: error: 'struct KeyParts' has no member named 'symmKey' 98. ../.././libjava/defineclass.cc:565: error: 'symmKey' was not declared in this scope 99. ../.././libjava/defineclass.cc:565: error: 'struct KeyParts' has no member named 'symmKey' 100. ../.././libjava/defineclass.cc:568: error: 'struct FileParts' has no member named 'encClass' 101. ../.././libjava/defineclass.cc:570: error: 'encClass' was not declared in this scope 102. ../.././libjava/defineclass.cc:570: error: 'struct FileParts' has no member named 'encClass' 103. ../.././libjava/defineclass.cc:573: error: 'struct FileParts' has no member named 'iVector' 104. ../.././libjava/defineclass.cc:575: error: 'iv' was not declared in this scope 105. ../.././libjava/defineclass.cc:575: error: 'struct FileParts' has no member named 'iVector' 106. ../.././libjava/defineclass.cc:580: error: 'symmKey' was not declared in this scope 107. ../.././libjava/defineclass.cc:580: error: 'iv' was not declared in this scope 108. ../.././libjava/defineclass.cc:584: error: 'struct FileParts' has no member named 'encClass' 109. ../.././libjava/defineclass.cc:601: error: 'decClass' was not declared in this scope 110. ../.././libjava/defineclass.cc:606: error: 'encClass' was not declared in this scope 111. ../.././libjava/defineclass.cc:613: error: 'decClass' was not declared in this scope 112. ../.././libjava/defineclass.cc:627: error: 'struct KeyParts' has no member named 'hmacKey' 113. ../.././libjava/defineclass.cc:628: error: 'struct FileParts' has no member named 'hmac' 114. ../.././libjava/defineclass.cc:629: error: 'decClass' was not declared in this scope 115. ../.././libjava/defineclass.cc:633: error: 'struct KeyParts' has no member named 'hmacKey' 116. ../.././libjava/defineclass.cc:634: error: 'hmacKey' was not declared in this scope 117. ../.././libjava/defineclass.cc:634: error: 'struct KeyParts' has no member named 'hmacKey' 118. ../.././libjava/defineclass.cc:637: error: 'struct FileParts' has no member named 'hmac' 119. ../.././libjava/defineclass.cc:638: error: 'oldHMAC' was not declared in this scope 120. ../.././libjava/defineclass.cc:638: error: 'struct FileParts' has no member named 'hmac' 121. ../.././libjava/defineclass.cc:644: error: 'decClassAsArray' was not declared in this scope 122. ../.././libjava/defineclass.cc:650: error: 'hmacKey' was not declared in this scope 123. ../.././libjava/defineclass.cc:650: error: 'decClassAsArray' was not declared in this scope 124. ../.././libjava/defineclass.cc:652: error: 'oldHMAC' was not declared in this scope 125. ../.././libjava/defineclass.cc: In member function 'int _Jv_ClassReader::doRSA_VerifyOperation(unsigned char*, const char*)': 126. ../.././libjava/defineclass.cc:674: error: 'vector' was not declared in this scope 127. ../.././libjava/defineclass.cc:674: error: expected primary-expression before 'unsigned' 128. ../.././libjava/defineclass.cc:674: error: expected `;' before 'unsigned' 129. ../.././libjava/defineclass.cc:678: error: 'dataVector' was not declared in this scope 130. ../.././libjava/defineclass.cc:683: error: 'dataVector' was not declared in this scope 131. ../.././libjava/defineclass.cc:685: error: 'data2verify' was not declared in this scope 132. ../.././libjava/defineclass.cc:694: error: 'data2verify' was not declared in this scope 133. ../.././libjava/defineclass.cc:701: warning: unused variable 'e' What should I change in the Makefile.in or in defineclass.cc? And why did he find no header file? best regards Toni -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl