GSL library

This is a discussion on GSL library within the C Programming forums, part of the General Programming Boards category; Originally Posted by QuantumPete Then it pays to take notice of your sig and compile with -Wall QuantumPete Yes, but ...

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by QuantumPete View Post
    Then it pays to take notice of your sig and compile with -Wall

    QuantumPete
    Yes, but in this case we're dealing with cross-language interfaces, which usually means that there's no way to actually let the compiler verify that the header file / prototype matches the actually generated code, since the Fortran compiler will not accept C style header files.

    Care and attention needed.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    If I'm not mistaken, you'd still need an extern declaration for the FORTRAN function. Hopefully that declaration is in some header file shipped with the FORTRAN, but not compiled into it.
    So you include that header in C and the compiler will perform argument checking. It would, of course, suck if you didn't get the header with the FORTRAN, but had to make it up yourself. FORTRAN variable translations are always tricky, especial logical.

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 04:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 12:28 PM

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