Page 1 of 1

Building on mac error: undeclared identifier 'vector_delete'

Posted: Thu Jan 09, 2014 1:40 pm
by f0m3
I am not a programming expert. Any ideas?

Code: Select all

Making all in pbd
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in pbd
make[5]: Nothing to be done for `all'.
g++ -DHAVE_CONFIG_H -I.     -D_REENTRANT -Os -fomit-frame-pointer -mmmx -msse -mfpmath=sse -pipe -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/Users/mohr/.Trash/sooperlooper-1.7.0/libs/pbd -I/Users/mohr/.Trash/sooperlooper-1.7.0/libs/midi++ -I/usr/include/libxml2  -I/usr/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2  -MT pathscanner.o -MD -MP -MF .deps/pathscanner.Tpo -c -o pathscanner.o pathscanner.cc
clang: warning: argument unused during compilation: '-mfpmath=sse'
pathscanner.cc:172:2: error: use of undeclared identifier 'vector_delete'
        vector_delete (res);
        ^
pathscanner.cc:199:2: error: use of undeclared identifier 'vector_delete'
        vector_delete (res);
        ^
2 errors generated.
make[5]: *** [pathscanner.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Mon Jan 20, 2014 4:50 pm
by kasbah
Hmm, possibly a GCC compatibility issue? Could you try with GCC? I know there is also some compatibility layer for LLVM/Clang. I am not sure how Jesse has been compiling for OSX in the past though.

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Tue Feb 04, 2014 3:02 pm
by f0m3
Ich changed all "g++" to "gcc" in the "Makefile". Is that right?
It produced the same error.

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Tue Feb 04, 2014 4:26 pm
by kasbah
No, sorry g++ was right. I thought XCode would use clang by default. Are you just using the makefile and doing `./configure` and `make`?

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Wed Feb 05, 2014 1:16 am
by jesse
What OSX version, Xcode ,and g++ version are you using? Do a 'g++ --version' and post it...

There are a lot of dependencies to get properly built and installed, but none of those should cause the error you are seeing...

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Wed Feb 05, 2014 1:48 pm
by f0m3
1. yes, i did ./configure and make

2. OSX 10.9.1
XCode: 5.0.2

g++ --version:

Code: Select all

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Re: Building on mac error: undeclared identifier 'vector_del

Posted: Thu Feb 06, 2014 5:48 pm
by jesse
If you *really* want to proceed, please grab the latest git from:
https://github.com/essej/sooperlooper

I fixed that issue (which turned out to only happen on mavericks because the compiler defaults to use libc++ instead of libstdc++).

But, there were lots of other things I had to do to get a suitable build on OSX, and I just upgraded to Mavericks. I just released a distribution build of 1.7.1 which includes a 64 bit AU, perhaps you just want to grab that?

http://essej.net/sooperlooper/SooperLooper-1.7.1.dmg