Debug win32 C program on linux

This is a discussion on Debug win32 C program on linux within the C Programming forums, part of the General Programming Boards category; Hi, I have developed a win32 program on linux in C. I used mingw to compile it and Wine to ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    22

    Debug win32 C program on linux

    Hi,
    I have developed a win32 program on linux in C. I used mingw to compile it and Wine to run it.
    Now I have end up with some memory leak and I need to find where it comes from in the program. As I know debuging the program is the option. But i dnt hv a way to move win32 environment and setup all the development environment in windows.

    Is there any way to debug win32 application on linux.

    I used valgrind commad prior to the wine command as follows to see any essential back trace. but it did not help.
    to compile i used...
    ache$ i586-mingw32msvc-gcc -o adapter_listner_win32.exe adapter_listner.c -liphlpapi -lws2_32

    To run I used...
    ache$ valgrind wine adapter_listner_win32.exe

    Thanks

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    22
    with valgrind it does not work. I use seting debuging option (-d) at compilation
    ache$i586-mingw32msvc-gcc -o adapter_listner_win32.exe adapter_listner.c -liphlpapi -lws2_32

    and then set --tool=memcheck even when running it as follows.
    ache$valgrind --tool=memcheck wine adapter_listner_win32.exe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. win32 can not compile simple program
    By zee in forum Windows Programming
    Replies: 14
    Last Post: 01-10-2006, 06:43 PM
  2. calendar program for linux
    By *ClownPimp* in forum Tech Board
    Replies: 1
    Last Post: 10-01-2005, 03:31 AM
  3. newbie : compiling a C++ program in linux
    By gemini_shooter in forum C++ Programming
    Replies: 5
    Last Post: 06-23-2005, 03:45 PM
  4. disigning a c program to access a win32 applaication
    By ayrton94senna in forum Windows Programming
    Replies: 1
    Last Post: 06-01-2005, 04:02 AM
  5. simple program on linux
    By finnepower in forum Linux Programming
    Replies: 10
    Last Post: 05-29-2004, 04:10 PM

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