Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7447279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:33:35+00:00 2026-05-29T12:33:35+00:00

The dreaded typical linker error.. ld: symbol(s) not found for architecture armv6 collect2: ld

  • 0

The dreaded typical linker error..

ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status

However, it is caused by filename? I use C++/Objective-C, so all of my Obj-C files are .mm, but I can never use any .c files. For example I’ve included the SFMT algorithm in my project, which was giving me these errors, but just changing the single .c file to .cpp made it go away and the code works just fine! I am only including the headers, so I’m not sure why this makes any difference.

The problem now is I’m trying to include Freetype2, giving me the same issue (pretty sure it’s because it’s .c), but that is far too large to rename every file, and I’m also using a linked binary, so unless I recompile it with new filenames, I can’t change that. So now it’s time to find the real reason behind this.

Any idea why this would happen? How can I stop linker errors for .c files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:33:37+00:00Added an answer on May 29, 2026 at 12:33 pm

    Wrap your Freetype includes within an extern "C" directive:

    // Non-C includes
    #include <iostream>
    
    extern "C"
    {
        #include <freetype/freetype.h>
        // ... Other freetype includes
    }
    

    You can probably use #import instead of #include within an extern "C" directive. I’ve never tried, but I don’t see why it wouldn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is one of my most dreaded C/C++ compiler errors: file.cpp(3124) : fatal error
I'm seeing the dreaded Code Sign error: The identity 'iPhone Developer' doesn't match any
I have a MERGE statement that's giving me the dreaded ORA-00904: invalid identifier error
I'm getting the dreaded Microsoft JScript runtime error: 'Sys' is undefined error while trying
I am searching for a solution for the dreaded 3043 error in MS Access.
I am getting the 'dreaded' error The entitlements specified in your application’s Code Signing
Some background: I'm getting the dreaded Java compiler level does not match the version
I am getting the dreaded MySQL JDBC stale connection exceptions: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No
I am facing the dreaded Unhandled Exception raised by Flup. The sad part is
Pretty self-explanatory, I tried google and got a lot of the dreaded expertsexchange, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.