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 6930047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:23:47+00:00 2026-05-27T11:23:47+00:00

I am trying to do a simple strrev on a string and I keep

  • 0

I am trying to do a simple strrev on a string and I keep getting this error when I compile it on my mac

Undefined symbols for architecture x86_64:
"_strrev", referenced from:
  _main in cc1zSAum.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

My code is:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc, char *argv[]){
  char str[] = "Hello world";
  char * test;
  test = strrev(str);
  printf("%s",test);
  return 0;
}

I tried playing around with the strrev line
but nothing is working

Any help would be appreciated
Thanks

  • 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-27T11:23:48+00:00Added an answer on May 27, 2026 at 11:23 am

    There’s no standard C function by that name. I did a little Googling and it looks like a few compilers and/or C library implementations have included such a function as a non-standard extension, but you can’t expect any arbitrary library to have one.

    Would be simple enough to write your own, though — could be a one line loop body, even.

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

Sidebar

Related Questions

I am trying this simple ctypes example and getting the error mentioned >>> from
I am trying a simple move as shown below and get the following error:
I am just trying a simple application, to make the browser fullscreen. this is
I'm trying this simple calculation in a Java application: System.out.println(b= + (1 - 7
I'm trying this simple code, but the damn break doesn't work... what is wrong?
Pulling my hair out on this one: I'm trying a simple redirect to home
I use MySQL server version 5.5.14 and now I am trying this simple SQL
I´m trying this simple script: require 'prawn' template_file_name = File.join(File.dirname(__FILE__), 'template.pdf') pdf_file = Prawn::Document.new(:template
Can someone help, i'm trying a simple example with hibernate search but getting the
I'm trying this simple uni-directional one-to-one relationship Person ----> Address using many-to-one mapping with

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.