Thread: Problem with porting of Linux code to Windows, FORTRAN/C.

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    1

    Problem with porting of Linux code to Windows, FORTRAN/C.

    Hello,

    There is a Linux console tool (written in FORTRAN/C) which I want to port under Windows. It can be started with one parameter:

    $gribprint gfs1.grib

    Example output on the console:

    --------------------------------------------------
    rec GRIB Lvl Lvl Lvl Time Fcst
    Num Code Code one two hour
    --------------------------------------------------
    1 11 1 0 0 2005-10-11_00:00 +00

    I have success with the compilation of the program under Windows. If I run it without argument it works fine and displays a help message. But if I run it with an argument (gfs1.grib) it starts to read the file and then it gives error message (it says that error log is created but I can't find it, W2K). The file is ok. I'm wondering where is the problem and I guess that it's in the file:

    /regrid/pregrid/util/cio.c

    where are the I/O (read & write) functions. Here are the original sources for UNIX/Linux:

    ftp://ftp.ucar.edu/mesouser/MM5V3/REGRID.TAR.gz

    Thanks for any ideas!


    Best Regards,

    Angel

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    you need to post your Windows port, not the original code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. stdio differences windows vs linux
    By keira in forum C Programming
    Replies: 6
    Last Post: 09-14-2008, 04:42 PM
  2. pthread and socket porting from Linux to Windows
    By mynickmynick in forum C Programming
    Replies: 2
    Last Post: 07-18-2008, 06:57 AM
  3. Problem using java programs within C code
    By lemania in forum Linux Programming
    Replies: 1
    Last Post: 05-08-2005, 02:02 AM
  4. Linux vs. windows
    By MicrosoftRep in forum Linux Programming
    Replies: 1
    Last Post: 03-20-2002, 02:42 PM
  5. Big Code, Little Problem
    By CodeMonkey in forum Windows Programming
    Replies: 4
    Last Post: 10-03-2001, 05:14 PM