|
List Info
Thread: Compilation Errors
|
|
| Compilation Errors |

|
2008-04-12 21:01:51 |
|
I am just trying to run a really simple "Hello World" type app for SvnCpp and am having issues when I compile my code. Essentially what I am doing is trying to just list the file contents of a remote file SVN repo. Compile on Ubuntu 8.04 using SvnCpp (0.9.4) [http://packages.ubuntu.com/hardy/libsvncpp-dev].
So I am running this code:
#include <iostream>
#include <context.hpp>
#include <client.hpp> #include <revision.hpp>
using namespace std; using namespace svn;
int main() {
Context* temp = new Context("/home/rlovelett/Desktop/TRACS/"); Client* test = new Client(temp);
svn_opt_revision_t* rev;
rev->kind = Revision::HEAD;
DirEntries result = test->list("svn://SVN_REPO_ADDRESS_REMOVED/", rev, false);
return 0; }
The problem is that when I do compile I am getting crazy errors, where it is telling me that svn: irEntry is invalidly being used. This does not seem to make sense, as I'm not directly implementing svn: irEntry so I cannot be the one having the issue with svn: irEntry.
These are the output errors from Code::Blocks:
-------------- Build: Debug in SvnCPP ---------------
Compiling: main.cpp /usr/include/c++/4.2/bits/stl_vector.h: In destructor 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]':
/usr/include/c++/4.2/bits/stl_vector.h:269: instantiated from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]' /home/rlovelett/Documents/SvnCPP/main.cpp:19: instantiated from here
/usr/include/c++/4.2/bits/stl_vector.h:120: error: invalid use of incomplete type 'struct svn: irEntry' /usr/include/svncpp/client.hpp:62: error: forward declaration of 'struct svn: irEntry' /usr/include/c++/4.2/bits/stl_vector.h: In member function 'size_t std::vector<_Tp, _Alloc>::size() const [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]':
/usr/include/c++/4.2/bits/stl_vector.h:229: instantiated from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]'
/home/rlovelett/Documents/SvnCPP/main.cpp:19: instantiated from here /usr/include/c++/4.2/bits/stl_vector.h:397: error: invalid use of incomplete type 'struct svn: irEntry' /usr/include/svncpp/client.hpp:62: error: forward declaration of 'struct svn: irEntry'
/usr/include/c++/4.2/bits/stl_vector.h: In constructor 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]': /usr/include/c++/4.2/bits/stl_vector.h:229: instantiated from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]'
/home/rlovelett/Documents/SvnCPP/main.cpp:19: instantiated from here /usr/include/c++/4.2/bits/stl_vector.h:116: error: invalid use of incomplete type 'struct svn: irEntry' /usr/include/svncpp/client.hpp:62: error: forward declaration of 'struct svn: irEntry'
/usr/include/c++/4.2/bits/stl_construct.h: In function 'void std::__destroy_aux(_ForwardIterator, _ForwardIterator, std::__false_type) [with _ForwardIterator = svn: irEntry*]': /usr/include/c++/4.2/bits/stl_construct.h:155: instantiated from 'void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = svn: irEntry*]'
/usr/include/c++/4.2/bits/stl_construct.h:182: instantiated from 'void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>) [with _ForwardIterator = svn: irEntry*, _Tp = svn: irEntry]' /usr/include/c++/4.2/bits/stl_vector.h:268: instantiated from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]'
/home/rlovelett/Documents/SvnCPP/main.cpp:19: instantiated from here /usr/include/c++/4.2/bits/stl_construct.h:121: error: cannot increment a pointer to incomplete type 'svn: irEntry' /usr/include/c++/4.2/ext/new_allocator.h: In member function '_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(size_t, const void*) [with _Tp = svn: irEntry]':
/usr/include/c++/4.2/bits/stl_vector.h:128: instantiated from '_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]' /usr/include/c++/4.2/bits/stl_vector.h:114: instantiated from 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]'
/usr/include/c++/4.2/bits/stl_vector.h:229: instantiated from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = svn: irEntry, _Alloc = std::allocator<svn: irEntry>]'
/home/rlovelett/ | |