Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problem with linker in SFML 2.2 under Xcode 6.1  (Read 3253 times)

0 Members and 1 Guest are viewing this topic.

The Thinker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Problem with linker in SFML 2.2 under Xcode 6.1
« on: December 31, 2014, 07:14:07 pm »
Hi all and Happy New Year :)

I have uninstalled SFML 2.1 (that was working very well) to install SFML 2.2 (SFML-2.2-osx-clang-universal)

Following your tutorial:
I copied the content of lib to /usr/local/lib and the content of include to /usr/local/include.
I copied the content of Frameworks to /Library/Frameworks and sndfile.framework and freetype.framework from extlibs to /Library/Frameworks.
I copied SFML directory from templates to /Library/Developer/Xcode/Templates

My Mac is Yosemite 10.10.1, Xcode is 6.1.1 and SFML is Clang - universal 32+64-bit (OS X 10.7+, compatible with C++11 and libc++)


I tried to create an application but it doesn't compile.

How can I fix this problem please? Thank you in advance :)

My Xcode screen shows this:

http://www.imageupload.co.uk/images/2014/12/31/Screen_Shot_2014-12-31_at_180225.png

-----------------------------------------------------------------------------------------------------------------

ProcessInfoPlistFile /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/My\ First\ SFML\ App.app/Contents/Info.plist My\ First\ SFML\ App/My\ First\ SFML\ App-Info.plist
    cd "/Users/Fab/Desktop/My First SFML App"
    builtin-infoPlistUtility /Users/Fab/Desktop/My\ First\ SFML\ App/My\ First\ SFML\ App/My\ First\ SFML\ App-Info.plist -genpkginfo /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/My\ First\ SFML\ App.app/Contents/PkgInfo -expandbuildsettings -platform macosx -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/My\ First\ SFML\ App.app/Contents/Info.plist

CompileC /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/ResourcePath.o My\ First\ SFML\ App/ResourcePath.mm normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/Fab/Desktop/My First SFML App"
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/My\ First\ SFML\ App.hmap -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources/i386 -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -MMD -MT dependencies -MF /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/ResourcePath.d --serialize-diagnostics /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/ResourcePath.dia -c /Users/Fab/Desktop/My\ First\ SFML\ App/My\ First\ SFML\ App/ResourcePath.mm -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/ResourcePath.o

CompileC /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/main.o My\ First\ SFML\ App/main.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/Fab/Desktop/My First SFML App"
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/My\ First\ SFML\ App.hmap -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources/i386 -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -MMD -MT dependencies -MF /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/main.dia -c /Users/Fab/Desktop/My\ First\ SFML\ App/My\ First\ SFML\ App/main.cpp -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/main.o

CompileC /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/main.o My\ First\ SFML\ App/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/Fab/Desktop/My First SFML App"
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/My\ First\ SFML\ App.hmap -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources/x86_64 -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -MMD -MT dependencies -MF /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/main.dia -c /Users/Fab/Desktop/My\ First\ SFML\ App/My\ First\ SFML\ App/main.cpp -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/main.o

CompileC /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/ResourcePath.o My\ First\ SFML\ App/ResourcePath.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/Fab/Desktop/My First SFML App"
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/My\ First\ SFML\ App.hmap -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources/x86_64 -I/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/DerivedSources -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -MMD -MT dependencies -MF /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/ResourcePath.d --serialize-diagnostics /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/ResourcePath.dia -c /Users/Fab/Desktop/My\ First\ SFML\ App/My\ First\ SFML\ App/ResourcePath.mm -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/ResourcePath.o

Ld /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/My\ First\ SFML\ App normal x86_64
    cd "/Users/Fab/Desktop/My First SFML App"
    export MACOSX_DEPLOYMENT_TARGET=10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -L/usr/local/lib -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -filelist /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/My\ First\ SFML\ App.LinkFileList -Xlinker -rpath -Xlinker @loader_path/../Frameworks -mmacosx-version-min=10.7 -framework sfml-system -framework sfml-window -framework sfml-graphics -framework sfml-audio -framework sfml-network -stdlib=libc++ -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/My\ First\ SFML\ App_dependency_info.dat -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/x86_64/My\ First\ SFML\ App

Undefined symbols for architecture x86_64:
  "sf::Image::~Image()", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/My\ First\ SFML\ App normal i386
    cd "/Users/Fab/Desktop/My First SFML App"
    export MACOSX_DEPLOYMENT_TARGET=10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -L/usr/local/lib -F/Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Products/Debug -F/Library/Frameworks -filelist /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/My\ First\ SFML\ App.LinkFileList -Xlinker -rpath -Xlinker @loader_path/../Frameworks -mmacosx-version-min=10.7 -framework sfml-system -framework sfml-window -framework sfml-graphics -framework sfml-audio -framework sfml-network -stdlib=libc++ -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/My\ First\ SFML\ App_dependency_info.dat -o /Users/Fab/Library/Developer/Xcode/DerivedData/My_First_SFML_App-caqxjctwacfvqfhkvlekjctzqfnc/Build/Intermediates/My\ First\ SFML\ App.build/Debug/My\ First\ SFML\ App.build/Objects-normal/i386/My\ First\ SFML\ App

Undefined symbols for architecture i386:
  "sf::Image::~Image()", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

« Last Edit: December 31, 2014, 08:46:34 pm by The Thinker »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #1 on: January 02, 2015, 09:41:19 am »
Strange...  :-\

Before copying the frameworks and templates, did you remove the old one completely?
SFML / OS X developer

The Thinker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #2 on: January 02, 2015, 12:37:12 pm »
Yes I did, and I deleted them from my system before replacing everything with the new ones.

Also If I revert to 2.1 everything works perfectly so my procedure is correct.

Any idea?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #3 on: January 02, 2015, 01:04:13 pm »
sf::Image::~Image() was introduced after 2.1 so I guess you're having the new headers (2.2) but some old binaries are still lurking around.. Maybe have a go with `find` on your whole filesystem and look for sfml-graphics.
SFML / OS X developer

The Thinker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #4 on: January 02, 2015, 11:20:40 pm »
sf::Image::~Image() was introduced after 2.1 so I guess you're having the new headers (2.2) but some old binaries are still lurking around.. Maybe have a go with `find` on your whole filesystem and look for sfml-graphics.

Nothing to do, I researched and removed all the older files but to no avail.
I have reinstalled the latest xcode command line tools, nothing change
Same problem.

http://www.imageupload.co.uk/images/2015/01/02/Screen_Shot_2015-01-02_at_221351.png

Other ideas?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #5 on: January 03, 2015, 09:06:50 am »
I meant, use the find function in a terminal (see `man find`). Finder is not the best thing to search for "special" files.
SFML / OS X developer

The Thinker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linker in SFML 2.2 under Xcode 6.1
« Reply #6 on: January 03, 2015, 10:14:32 pm »
I meant, use the find function in a terminal (see `man find`). Finder is not the best thing to search for "special" files.

Fixed thanks, I had twice the frameworks files in these folders ;/
/Library/Frameworks/  RIGHT ONE
/Users/Fab/Library/Frameworks/ WRONG ONE