LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2012, 11:22 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
running on windows application developped on linux


Hi,

Sorry may be it is not the appropriate place to post,
But if anyone has this experience

I am newer to windows environnement, I installed mingw to create executable for application creted under linux. ( written in c).
My application is just a client/server program ( I replaced the linux included by windows include, namely

I used #include <winsock2.h> instead of linux include

The compilation is done without error, but when I tryed to link it I got errors :
WSAGet.. , WSACleanup .... unknown
I tryed option -lwinsock, -lwinsock2 , and other and other but no one has been succeded!!!


Another problem please :
I created a graphical interface with fltk on linux, i compile it and lined it without error ( via mingw too), but when I tried to run it on windows I got errors like cannot find libstdc++-6.dll and others a lot.

I conclude that I need to compile it with static library, in oder to use it on any windows machien!!!!! Am I right ??
how to do it

thanks a lot.

best regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kill an running application process inside windows XP nano2 Programming 1 09-22-2009 02:12 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
did russians developped any OS while UNIX was growing in the 70's Dominik General 2 01-20-2004 06:11 AM
VB developped application under Linux seicfano Linux - Software 1 05-26-2003 06:20 AM
Why application on linux running slow compare on Windows? garyura Linux - General 15 08-28-2002 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration