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

This is a discussion on g++ error (/usr/lib/libstdc++.so.4) within the C++ Programming forums, part of the General Programming Boards category; 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 ...

  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
    C Programmer Stack Overflow's Avatar
    Join Date
    Apr 2004
    Posts
    477
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21