Having trouble with BitBlt::RightMasks at link time
bcr opened this issue · 1 comments
bcr commented
I presume this is some fistfight regarding constexpr
and someone is confused if it is resolved at compile time vs. needs to be resolved. I'll mess with it and see if I can figure it out.
~/Source/OpenSource/Smalltalk/osx$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
~/Source/OpenSource/Smalltalk/osx$ make
g++ -O3 -std=c++14 -c ../src/objmemory.cpp -o objmemory.o
g++ -O3 -std=c++14 -c ../src/bitblt.cpp -o bitblt.o
g++ -O3 -std=c++14 -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -c ../src/main.cpp
g++ -O3 -std=c++14 -c ../src/interpreter.cpp -o interpreter.o
g++ -F/Library/Frameworks -framework SDL2 -o Smalltalk objmemory.o bitblt.o main.o interpreter.o
Undefined symbols for architecture x86_64:
"BitBlt::RightMasks", referenced from:
BitBlt::computeMasks() in bitblt.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Smalltalk] Error 1