Thread: g++ error (/usr/lib/libstdc++.so.4)

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

    Post g++ error (/usr/lib/libstdc++.so.4)

    Message:
    /usr/lib/libstdc++.so.4: Undefined symbol "strtold"

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


    env:
    FreeBSD 5.2.1-RELEASE

  2. #2
    Hello,

    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