Thread: porting c program from unix to windows

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

    Unhappy porting c program from unix to windows

    i want to try to port a program which is written in c.it works on unix.
    i use windows98 and redhat 7.2.i compile code with visualc++ 6.0
    there was no errors.but i have many link errors.
    i use for variables this command "__declspec (dllexport)".
    and solve most of the link errors.but i cant use same structure for functions.and dont know why?

    i heard about some programs , like cygwin , interix , uwin ,mingw etc.
    they all says i can port my code easily on windows.i use now cygwin but
    how can i do that?


    if somebody related with these items contact me.

    live happy

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    You can't port the whole program without changing anything if you used some platform-specific functions, sry not sure about the specific ones...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Running program in unix
    By Cpro in forum Linux Programming
    Replies: 2
    Last Post: 02-10-2008, 09:28 PM
  2. memory leak checker program? for windows
    By rahulsk1947 in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 07:20 AM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  4. Replies: 1
    Last Post: 01-24-2005, 02:07 PM
  5. Running another program in windows
    By Mr_Jack in forum C++ Programming
    Replies: 4
    Last Post: 01-22-2004, 02:01 AM