Thread: linker error dev c++

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    1

    linker error dev c++

    i am encountering a Linker Error: Undefined reference in my program under DEV c++
    it involves usage of the NTL class of header files.
    i have downloaded those files and have every header file existing in the required forlder of NTL.
    but still there are issues concerning the reference.
    i have tried including that folder at every possible location of BIN, include, LIB. the folder is also included within tht folder where my program is stationed. yet there are reference errors cropping up.
    [Linker error] undefined reference to `NTL::ZZ_p::ZZ_p()'
    [Linker error] undefined reference to `NTL::sub(NTL::ZZ&, NTL::ZZ const&, long)'


    there are around 230 of these errors and all asoosciated with NTL class only.
    can somebody plz suggest wat is going wrong.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Project->settings->linker->additional libraries

    Add the path to where the NTL library is
    Add the name of the NTL library
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    you may also need to check enable the projects for the executable project's "project dependencies" (wow that's a lot of project words)

    ...EDIT: nm, didn't realize u're using dev-c++. what i posted is for VS.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker problem... no idea
    By cyreon in forum C Programming
    Replies: 2
    Last Post: 04-03-2009, 02:53 PM
  2. linker
    By George2 in forum C++ Programming
    Replies: 6
    Last Post: 02-23-2008, 01:25 AM
  3. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 07:42 AM
  4. Linker errors when compiling
    By The Wazaa in forum C++ Programming
    Replies: 4
    Last Post: 10-07-2006, 12:55 PM
  5. MSVis-Studio C++ libraries and linker errors
    By kellydj in forum Windows Programming
    Replies: 10
    Last Post: 03-12-2002, 02:03 PM