Thread: g++ error (/usr/lib/

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001

    Post g++ error (/usr/lib/

    /usr/lib/ Undefined symbol "strtold"

    my includes:
       #include <httpfilt.h>
       #include <string>
       #include <iostream>
       #include <fstream> 
       using namespace std;
    compile statement:
    g++ core.cpp -o -I/usr/local/zeus/web/include/ -I/usr/local/include -shared -fPIC -Wall
    --same result with--
    c++ core.cpp -o -I/usr/local/zeus/web/include/ -I/usr/local/include -shared -fPIC -Wall

    FreeBSD 5.2.1-RELEASE

  2. #2

    I see you aren't including cstdlib: strtold man pages

    Of course it shows stdlib.h, but cstdlib is the C++ equivilent.

    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

Popular pages Recent additions subscribe to a feed