Thread: Help importing? library

  1. #1
    Registered User
    Join Date
    Apr 2016
    Posts
    5

    Help importing? library

    I am not too familiar with C, but ran a program that needs to be compiled, and got these error messages:
    Code:
    /usr/bin/ld: /tmp/ccIMGeG6.o: in function `main':
    main.c:(.text+0x75): undefined reference to `i18n_set_new'
    /usr/bin/ld: main.c:(.text+0x8a): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x9b): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x105): undefined reference to `i18n_set_rm_type'
    /usr/bin/ld: main.c:(.text+0x173): undefined reference to `i18n_set_rm_type'
    /usr/bin/ld: main.c:(.text+0x1e1): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x1fb): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x265): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x27f): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x2e9): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x303): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x371): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x387): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x398): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x3ae): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x3bf): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x3d5): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x3e6): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x400): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x440): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x45a): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x49a): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x4b4): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x4f4): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x50e): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x54e): undefined reference to `i18n_set_exists'
    /usr/bin/ld: main.c:(.text+0x568): undefined reference to `i18n_set_add'
    /usr/bin/ld: main.c:(.text+0x747): undefined reference to `i18n_set_dump'
    /usr/bin/ld: main.c:(.text+0x84a): undefined reference to `i18n_set_free'
    collect2: error: ld returned 1 exit status
    
    I've located the library here: GitHub - turquoiseowl/i18n: Smart internationalization for ASP.NET. What do I do from here to get this to compile?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,360
    Quote Originally Posted by droidus View Post
    I've located the library here: GitHub - turquoiseowl/i18n: Smart internationalization for ASP.NET. What do I do from here to get this to compile?
    Are you sure that is the correct library? The heading in the README states "Smart internationalization for ASP.NET". A quick search of the code in that repository does not bring up any results for i18n_set_add.

    I am also not getting results for a Google search of i18n_set_add. This suggests that i18n_set_add might be a function declared within the source code of the project, i.e., you're just not compiling all the relevant source files and linking correctly.
    Last edited by laserlight; 10-13-2020 at 04:35 PM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 02-23-2015, 01:38 AM
  2. importing libraries from elsewhere
    By Opel_Corsa in forum C++ Programming
    Replies: 5
    Last Post: 01-05-2007, 04:38 AM
  3. Importing DLL / Library Files
    By magic.mike in forum Windows Programming
    Replies: 5
    Last Post: 03-22-2005, 05:47 AM
  4. importing from .lib into DLL
    By xds4lx in forum Windows Programming
    Replies: 4
    Last Post: 11-15-2002, 06:38 PM
  5. Importing DLL's
    By Lynchie in forum Windows Programming
    Replies: 1
    Last Post: 07-19-2002, 04:01 AM

Tags for this Thread