[MonoDevelop] Creating sample c++ library and console app in MD errors after adding project package references

Miljenko Cvjetko mcvjetko at holisticware.net
Wed Dec 26 22:23:59 UTC 2012


Hi Richard

Thanks for You answer, but  in this post I wanted to point out errors 
when project package is
added in MD c++ app project.

Regardless of that I'll comment some info found in last few days 
regarding MonoTouch and PInvoke.

Inline...


On 2012.12.26 20:35, Richard Heesbeen wrote:
> Hi,
>
> Pinvoke works with monotouch, i think you need to add -cxx to the 
> linker arguments.
I did, but no help. Today I have found several posts (one from Miguel 
himself how to pass some
defines to mono to get more info on DllNotFound Exception), but those 
are for mono -  not monotouch.

Here is one sample, but for MacOSX, not iOS:
https://github.com/bvanderveen/pinvoke-examples
And it seems he had similar problems like I (we) have.
It seems that DllNotFound Exception might have several different issues: 
linking, name mangling
(method entr-points not found) and similar. We are investigating that.

> See http://docs.xamarin.com/ios/Guides/Advanced_Topics/Native_Interop 
> for more details.
I have read that backwards too...

We are following 2 tracks:

  * one creating small PoC c++ library and see PInvoke
  * the other to compile arbitrary c/c++ library (our guys just sent me
    pjsip library compile script) to
    see how


thanks and cheers

Mel

>
> Greetz,
> Richard
>
> Op 26 dec. 2012 om 19:16 heeft Miljenko Cvjetko 
> <mcvjetko at holisticware.net <mailto:mcvjetko at holisticware.net>> het 
> volgende geschreven:
>
>> Hi
>>
>> In the course of porting one WinMobile app to iOS we ran into some 
>> problems on the part of the project where we need
>> PInvoke on c++ library that is going to be ported. So right now I'm 
>> trying to do some small proof-of-concept to test
>> PInvoke.
>>
>> I have created 3 projects:
>>
>>  1. iOS app
>>  2. c++ static library with 2 files String.h and String.cpp. It is
>>     String class with single method that returns
>>     reversed string.
>>  3. c++ console app to test library...
>>
>>
>> As soon as I add package (project package in MD) to c++ console app 
>> (item 3) I get 93 errors (it is MacOSx).
>> Removing package all 3 projects compile fine.
>>
>>
>> Do I need some more extra options or is something wrong with the 
>> installation.
>>
>> thanks
>>
>> Mel
>>
>> log:
>>
>> Building: BindingNativeLibrariesCPPConsoleApp (Debug)
>> Performing main compilation...
>>
>> Precompiling headers
>>
>> Compiling source to object files
>> g++  -MMD 
>> "/Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp" 
>> -g -O0 -DDEBUG -DMONODEVELOP 
>> -I"/Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/.prec/Debug" 
>> -I/Users/mc/Desktop/src/libraries-holisticware/git\[github.com 
>> <http://github.com>\]/MonoTouch.Samples/BindingNativeLibrariesCPPStaticLib 
>>
>>  -c -o "/Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/bin/Debug/main.o"
>> In file included from /usr/include/c++/4.2.1/algorithm:65,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPStaticLib/string.h:6,
>>                  from /usr/include/c++/4.2.1/cstring:52,
>>                  from /usr/include/c++/4.2.1/bits/c++locale.h:48,
>>                  from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In static member function 
>> 'static _Tp* std::__copy<true, 
>> std::random_access_iterator_tag>::copy(const _Tp*, const _Tp*, _Tp*)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:298: error: 'memmove' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: At global scope:
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:321: error: 
>> 'ostreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:321: error: template 
>> argument 2 is invalid
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:321: error: expected 
>> unqualified-id before '>' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:326: error: 
>> 'ostreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:326: error: template 
>> argument 2 is invalid
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:326: error: expected 
>> unqualified-id before '>' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: template 
>> declaration of 'typename 
>> __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, _CharT*>::__type 
>> std::__copy_aux'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: 
>> 'istreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: expected 
>> primary-expression before '>' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: expected 
>> primary-expression before ',' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: 
>> 'istreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: expected 
>> primary-expression before '>' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:331: error: expected 
>> primary-expression before ',' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:332: error: expected 
>> primary-expression before '*' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:332: error: expected 
>> primary-expression before ')' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:407: error: 
>> 'ostreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:407: error: template 
>> argument 2 is invalid
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:407: error: expected 
>> unqualified-id before '>' token
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In static member function 
>> 'static _Tp* std::__copy_backward<true, 
>> std::random_access_iterator_tag>::__copy_b(const _Tp*, const _Tp*, 
>> _Tp*)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:446: error: 'memmove' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In function 'void 
>> std::fill(unsigned char*, unsigned char*, const unsigned char&)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:600: error: 'memset' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In function 'void 
>> std::fill(signed char*, signed char*, const signed char&)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:608: error: 'memset' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In function 'void 
>> std::fill(char*, char*, const char&)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:616: error: 'memset' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_algobase.h: In function 'bool 
>> std::lexicographical_compare(const unsigned char*, const unsigned 
>> char*, const unsigned char*, const unsigned char*)':
>> /usr/include/c++/4.2.1/bits/stl_algobase.h:908: error: 'memcmp' is 
>> not a member of 'std'
>> In file included from /usr/include/c++/4.2.1/algorithm:67,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPStaticLib/string.h:6,
>>                  from /usr/include/c++/4.2.1/cstring:52,
>>                  from /usr/include/c++/4.2.1/bits/c++locale.h:48,
>>                  from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 
>> '_ForwardIterator std::__uninitialized_copy_aux(_InputIterator, 
>> _InputIterator, _ForwardIterator, std::__false_type)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:93: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'char* 
>> std::uninitialized_copy(const char*, const char*, char*)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:120: error: 'memmove' 
>> is not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 
>> 'wchar_t* std::uninitialized_copy(const wchar_t*, const wchar_t*, 
>> wchar_t*)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:128: error: 'memmove' 
>> is not a member of 'std'
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'void 
>> std::__uninitialized_fill_aux(_ForwardIterator, _ForwardIterator, 
>> const _Tp&, std::__false_type)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:155: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'void 
>> std::__uninitialized_fill_n_aux(_ForwardIterator, _Size, const _Tp&, 
>> std::__false_type)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:200: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 
>> '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, 
>> _InputIterator, _ForwardIterator, _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:245: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'void 
>> std::__uninitialized_fill_a(_ForwardIterator, _ForwardIterator, const 
>> _Tp&, _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:270: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'void 
>> std::__uninitialized_fill_n_a(_ForwardIterator, _Size, const _Tp&, 
>> _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:296: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 
>> '_ForwardIterator std::__uninitialized_copy_copy(_InputIterator1, 
>> _InputIterator1, _InputIterator2, _InputIterator2, _ForwardIterator, 
>> _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:338: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 
>> '_ForwardIterator std::__uninitialized_fill_copy(_ForwardIterator, 
>> _ForwardIterator, const _Tp&, _InputIterator, _InputIterator, 
>> _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:361: error: 
>> '__throw_exception_again' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h: In function 'void 
>> std::__uninitialized_copy_fill(_InputIterator, _InputIterator, 
>> _ForwardIterator, _ForwardIterator, const _Tp&, _Allocator)':
>> /usr/include/c++/4.2.1/bits/stl_uninitialized.h:386: error: 
>> '__throw_exception_again' was not declared in this scope
>> In file included from /usr/include/c++/4.2.1/algorithm:68,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPStaticLib/string.h:6,
>>                  from /usr/include/c++/4.2.1/cstring:52,
>>                  from /usr/include/c++/4.2.1/bits/c++locale.h:48,
>>                  from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/stl_algo.h: At global scope:
>> /usr/include/c++/4.2.1/bits/stl_algo.h:304: error: 
>> 'istreambuf_iterator' was not declared in this scope
>> /usr/include/c++/4.2.1/bits/stl_algo.h:304: error: template argument 
>> 2 is invalid
>> /usr/include/c++/4.2.1/bits/stl_algo.h:304: error: expected 
>> unqualified-id before '>' token
>> In file included from /usr/include/c++/4.2.1/cstring:52,
>>                  from /usr/include/c++/4.2.1/bits/c++locale.h:48,
>>                  from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPStaticLib/string.h:15: 
>> error: 'string' does not name a type
>> In file included from /usr/include/c++/4.2.1/bits/c++locale.h:48,
>>                  from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/cstring:80: error: '::memcpy' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:81: error: '::memmove' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:82: error: '::strcpy' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:83: error: '::strncpy' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:84: error: '::strcat' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:85: error: '::strncat' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:86: error: '::memcmp' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:87: error: '::strcmp' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:88: error: '::strcoll' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:89: error: '::strncmp' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:90: error: '::strxfrm' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:91: error: '::strcspn' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:92: error: '::strspn' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:93: error: '::strtok' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:94: error: '::memset' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:95: error: '::strerror' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:96: error: '::strlen' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:98: error: '::memchr' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring: In function 'void* std::memchr(void*, 
>> int, size_t)':
>> /usr/include/c++/4.2.1/cstring:102: error: invalid conversion from 
>> 'const void*' to 'void*'
>> /usr/include/c++/4.2.1/cstring:102: error:   initializing argument 1 
>> of 'void* std::memchr(void*, int, size_t)'
>> /usr/include/c++/4.2.1/cstring: At global scope:
>> /usr/include/c++/4.2.1/cstring:104: error: '::strchr' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:110: error: '::strpbrk' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:116: error: '::strrchr' has not been 
>> declared
>> /usr/include/c++/4.2.1/cstring:122: error: '::strstr' has not been 
>> declared
>> In file included from /usr/include/c++/4.2.1/iosfwd:45,
>>                  from /usr/include/c++/4.2.1/ios:43,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/c++locale.h: In function 'int 
>> std::__convert_from_v(int* const&, char*, int, const char*, ...)':
>> /usr/include/c++/4.2.1/bits/c++locale.h:69: error: 'strcmp' is not a 
>> member of 'std'
>> /usr/include/c++/4.2.1/bits/c++locale.h:71: error: 'strlen' is not a 
>> member of 'std'
>> /usr/include/c++/4.2.1/bits/c++locale.h:72: error: 'strcpy' is not a 
>> member of 'std'
>> In file included from /usr/include/c++/4.2.1/ios:45,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static typename __gnu_cxx::char_traits<_CharT>::char_type* 
>> __gnu_cxx::char_traits<_CharT>::move(_CharT*, const _CharT*, size_t)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:186: error: 'memmove' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static int std::char_traits<char>::compare(const char*, const char*, 
>> size_t)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:254: error: 'memcmp' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static size_t std::char_traits<char>::length(const char*)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:258: error: 'strlen' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static const char* std::char_traits<char>::find(const char*, size_t, 
>> const char&)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:262: error: invalid 
>> conversion from 'const void*' to 'void*'
>> /usr/include/c++/4.2.1/bits/char_traits.h:262: error: initializing 
>> argument 1 of 'void* std::memchr(void*, int, size_t)'
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static char* std::char_traits<char>::move(char*, const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:266: error: 'memmove' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static char* std::char_traits<char>::copy(char*, const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:270: error: 'memcpy' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/char_traits.h: In static member function 
>> 'static char* std::char_traits<char>::assign(char*, size_t, char)':
>> /usr/include/c++/4.2.1/bits/char_traits.h:274: error: 'memset' was 
>> not declared in this scope
>> In file included from /usr/include/c++/4.2.1/bits/ios_base.h:47,
>>                  from /usr/include/c++/4.2.1/ios:48,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/locale_classes.h: In member function 
>> 'bool std::locale::_Impl::_M_check_same_name()':
>> /usr/include/c++/4.2.1/bits/locale_classes.h:545: error: 'strcmp' is 
>> not a member of 'std'
>> In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 
>> 'const char* std::ctype<char>::widen(const char*, const char*, char*) 
>> const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:901: error: 'memcpy' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 
>> 'const char* std::ctype<char>::narrow(const char*, const char*, char, 
>> char*) const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:966: error: 'memcpy' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 
>> 'virtual const char* std::ctype<char>::do_widen(const char*, const 
>> char*, char*) const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1103: error: 'memcpy' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 
>> 'virtual const char* std::ctype<char>::do_narrow(const char*, const 
>> char*, char, char*) const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1156: error: 'memcpy' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 'void 
>> std::ctype<char>::_M_widen_init() const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1171: error: 'memcmp' was 
>> not declared in this scope
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In member function 'void 
>> std::ctype<char>::_M_narrow_init() const':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1186: error: 'memcmp' was 
>> not declared in this scope
>> In file included from /usr/include/c++/4.2.1/bits/locale_facets.h:1539,
>>                  from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/codecvt.h: In constructor 
>> 'std::codecvt_byname<_InternT, _ExternT, 
>> _StateT>::codecvt_byname(const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/codecvt.h:460: error: 'strcmp' is not a 
>> member of 'std'
>> /usr/include/c++/4.2.1/bits/codecvt.h:460: error: 'strcmp' is not a 
>> member of 'std'
>> In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In constructor 
>> 'std::numpunct_byname<_CharT>::numpunct_byname(const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1907: error: 'strcmp' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/locale_facets.h:1907: error: 'strcmp' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In constructor 
>> 'std::collate_byname<_CharT>::collate_byname(const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:2729: error: 'strcmp' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/locale_facets.h:2729: error: 'strcmp' is 
>> not a member of 'std'
>> In file included from /usr/include/c++/4.2.1/bits/locale_facets.h:3043,
>>                  from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/time_members.h: In constructor 
>> 'std::__timepunct<_CharT>::__timepunct(int*, const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/time_members.h:65: error: 'strlen' is not 
>> a member of 'std'
>> /usr/include/c++/4.2.1/bits/time_members.h:67: error: 'memcpy' is not 
>> a member of 'std'
>> In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/locale_facets.h: In constructor 
>> 'std::moneypunct_byname<_CharT, _Intl>::moneypunct_byname(const 
>> char*, size_t)':
>> /usr/include/c++/4.2.1/bits/locale_facets.h:4017: error: 'strcmp' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/locale_facets.h:4017: error: 'strcmp' is 
>> not a member of 'std'
>> In file included from /usr/include/c++/4.2.1/bits/locale_facets.h:4602,
>>                  from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
>>                  from /usr/include/c++/4.2.1/ios:50,
>>                  from /usr/include/c++/4.2.1/ostream:45,
>>                  from /usr/include/c++/4.2.1/iostream:45,
>>                  from 
>> /Users/mc/Desktop/src/libraries-holisticware/git[github.com 
>> <http://github.com>]/MonoTouch.Samples/BindingNativeLibrariesCPPConsoleApp/main.cpp:1:
>> /usr/include/c++/4.2.1/bits/messages_members.h: In constructor 
>> 'std::messages_byname<_CharT>::messages_byname(const char*, size_t)':
>> /usr/include/c++/4.2.1/bits/messages_members.h:86: error: 'strcmp' is 
>> not a member of 'std'
>> /usr/include/c++/4.2.1/bits/messages_members.h:86: error: 'strcmp' is 
>> not a member of 'std'
>> Build complete -- 93 errors, 0 warnings
>>
>> ---------------------- Done ----------------------
>>
>> Build: 93 errors, 0 warnings
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com 
>> <mailto:Monodevelop-list at lists.ximian.com>
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list


-- 
Miljenko Cvjetko dipl.ing. ET
	Direktor/CEO
	Projektant rješenja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX južna obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20121226/2030a7df/attachment-0001.html>


More information about the Monodevelop-list mailing list