Building on mac error: undeclared identifier 'vector_delete'

Talk about building the software from source code, and any issues related.

Moderator: jesse

Post Reply
f0m3
Posts: 20
Joined: Tue Nov 03, 2009 3:31 am

Building on mac error: undeclared identifier 'vector_delete'

Post 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

kasbah
Posts: 117
Joined: Tue Sep 06, 2011 7:01 pm

Re: Building on mac error: undeclared identifier 'vector_del

Post 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.

f0m3
Posts: 20
Joined: Tue Nov 03, 2009 3:31 am

Re: Building on mac error: undeclared identifier 'vector_del

Post by f0m3 »

Ich changed all "g++" to "gcc" in the "Makefile". Is that right?
It produced the same error.

kasbah
Posts: 117
Joined: Tue Sep 06, 2011 7:01 pm

Re: Building on mac error: undeclared identifier 'vector_del

Post 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`?

jesse
Posts: 527
Joined: Sat Sep 06, 2008 9:46 am
Contact:

Re: Building on mac error: undeclared identifier 'vector_del

Post 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...

f0m3
Posts: 20
Joined: Tue Nov 03, 2009 3:31 am

Re: Building on mac error: undeclared identifier 'vector_del

Post 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

jesse
Posts: 527
Joined: Sat Sep 06, 2008 9:46 am
Contact:

Re: Building on mac error: undeclared identifier 'vector_del

Post 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

Post Reply