automake configure.h autoheader

This is a discussion on automake configure.h autoheader within the C++ Programming forums, part of the General Programming Boards category; Ok i thought this topic would fit here.. if not please move it... Well i am trying to use automake ...

  1. #1
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683

    automake configure.h autoheader

    Ok i thought this topic would fit here.. if not please move it...



    Well i am trying to use automake for my project... In my configure.in file I have a statement

    AC_CHECK_LIB(stlport_gcc,main,,AC_MSG_ERROR(skinny requires library STLport to continue, Try again after installing the library))


    which basically checks if the stlport library exists... But an error always occurs even though the library is present... I am able co compile programs using that library example g++ a.cpp -lstlport_gcc and it compiles fine... anyone have any idea what the problem might be...

    I am unable to figure out what is happenng from the past 3 hours...

    thanx in advance

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    >AC_CHECK_LIB(stlport_gcc,main,...)
    Just out of curiosity, what happens if you replace main with 'std::find'? (Including quotes)
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Hmm... may I ask, why do you require STLPort?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Quote Originally Posted by XSquared
    >AC_CHECK_LIB(stlport_gcc,main,...)
    Just out of curiosity, what happens if you replace main with 'std::find'? (Including quotes)
    I did try that but it still fails saying that it couldnt find std::find in -lstlport_gcc ... This is realy crazy.... The way I though this script would run is it would try to compile a simlple program with the gievn library and if it fails it concludes that it does not exist.. But i am able to compile programs with the library on my system... and if any help I am usign gentoo..

    Quote Originally Posted by CornedBee
    > Hmm... may I ask, why do you require STLPort?
    well my project involves working with threads and the STL library thats normally used does not provied thread safetly in some situations... so i use STLport library which I feel performs better also provides some of the features I require...

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    emerging STLport right now...

    Hmm... checking config.log, it seems that the main problem is that it is trying to compile a C file using gcc. That won't work. You need a macro that compiles a cpp file using g++. Perhaps you can copy AC_CHECK_LIB and modify it to produce AC_CHECK_CPP_LIB. Or there might already exist such a macro.
    Last edited by CornedBee; 12-04-2004 at 10:02 AM.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Quote Originally Posted by CornedBee
    emerging STLport right now...

    Hmm... checking config.log, it seems that the main problem is that it is trying to compile a C file using gcc. That won't work. You need a macro that compiles a cpp file using g++. Perhaps you can copy AC_CHECK_LIB and modify it to produce AC_CHECK_CPP_LIB. Or there might already exist such a macro.
    thanx.. I too seem to think so.. will try it out

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Automake Files w/ Visual C++
    By Matt3000 in forum C++ Programming
    Replies: 1
    Last Post: 01-10-2008, 07:25 AM
  2. automake alternatives
    By bludstayne in forum Tech Board
    Replies: 1
    Last Post: 01-04-2004, 02:15 PM

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