Skip to content

Instantly share code, notes, and snippets.

@wjwwood
Created January 27, 2012 20:36
Show Gist options
  • Select an option

  • Save wjwwood/1690793 to your computer and use it in GitHub Desktop.

Select an option

Save wjwwood/1690793 to your computer and use it in GitHub Desktop.
∫ make
mkdir -p bin
cd build && cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/william/devel/comp6400/homework1/build
cd build && make
Scanning dependencies of target shelby
[ 50%] Building CXX object CMakeFiles/shelby.dir/src/main.cc.o
[100%] Building CXX object CMakeFiles/shelby.dir/src/shelby.cc.o
Linking CXX executable ../bin/shelby
Undefined symbols for architecture x86_64:
"shelby::drawShelby(std::pair<unsigned long, unsigned long>)", referenced from:
display() in main.cc.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [../bin/shelby] Error 1
make[2]: *** [CMakeFiles/shelby.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [homework0] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment