Apple Mach -o Linker (id) Error

  • OmerMujtaba
    Likes 0

    Problem Description
    I am following the Modern OpenGL 3.0+ (https://www.youtube.com/watch?v=RnXDUFq7T6A), while building my project I am having Apple Mach -o Linker (id) Error.
    Undefined symbols for architecture x86_64:
      "_SOIL_free_image_data", referenced from:
          _main in main.o
      "_SOIL_load_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)
    
    
    
    Error screenshot: https://drive.google.com/file/d/1fyITTkucA1WGisLbHkEbktI_OfhI9KQc/view?usp=sharing
    
    Please help :) 
  • OmerMujtaba
    Likes 0

    Solved it :) 

    While adding SOIL2 to the project, I need to select “Create groups” 

  • Sonar Systems admin
    Likes 0

    Great to hear you have solved it.

     

    Feel free to ask any future questions you have.

  • mcneils1993
    Likes 0

    im getting the same error, and did what you did. When you add though, do you also select add to targets?

  • Sonar Systems admin
    Likes 0

    Yes             

Login to reply