Visit Our UNIX and Linux User Community


Sys headers - running Linux C code on windows


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Sys headers - running Linux C code on windows
# 1  
Old 02-14-2014
Debian Sys headers - running Linux C code on windows

Hi All,

I wanted to run a small socket application written in C on windows.

The code was written for GNU/linux..the compiler on windows CodeBlocks complains about the sys headers.

is there an equivalent for windows ?
# 2  
Old 02-14-2014
I cannot see your computer from here.

Please post your code.

It's sometimes possible for socket code to work in Windows if sockets are used in an extremely specific and rather limited way but more often separate code is written for each.

Last edited by Corona688; 02-14-2014 at 11:49 AM..
# 3  
Old 02-14-2014
Debian

The code I was trying to run is taken from this webpage.

i did not paste the code here as its wrapping & difficult to read.
# 4  
Old 02-14-2014
You can easily post code here by using code tags, [code]stuff[/code][/code].

If you wanted to compile unmodified UNIX code under Windows you could use cygwin.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 02-14-2014
Ok Corona..I will try what you suggested.

Previous Thread | Next Thread
Test Your Knowledge in Computers #696
Difficulty: Medium
The Cathedral model, in which source code is available with each software release, but code developed between releases, is restricted to an exclusive group of software developers.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running Linux Script from Windows

forgive me if i am posting this question in wrong forum. I have a rsync script that runs on one server for rsync with another server (both linux) . Now I want to get control of that script from my windows 7 machine. Means I want to run that script from my windows machine whenever i want... (1 Reply)
Discussion started by: HarryReid
1 Replies

2. UNIX for Advanced & Expert Users

sys cron not running

Hi all, I have a solris 10 machine and i am facing some strange issues. My sys user cron is not executing. Can any one help on this issue? root@antsdp1b>svcs -a|grep -i cron online 1:08:55 svc:/system/cron:default root@antsdp1b> the cron process is also running. but whatever i... (5 Replies)
Discussion started by: vivek.goel.piet
5 Replies

3. Red Hat

controlling tool running on Linux VM fron Windows

I have a virtual machine with RedHat. It has a command-line tool X that takes an input file + some control parameters, performs some processing and generates some input files. I have a Windows XP/Server 2003 box where an app Y is running. What I need to do is to control X from Y. That is, given an... (1 Reply)
Discussion started by: ilyaz
1 Replies

4. UNIX for Advanced & Expert Users

SYS CRONJOB just not running...

I'm trying to run "SAR -i 60" under #/var/spool/cron/crontabs/SYS 0,10,20,30,40,50 0-6 sh -c "/usr/lib/sa/sa1 60 10 &" 55 23 * 0-6 /usr/lib/sa/sa2 -i 900 -A machine is not running above cron job under "sys" at all. This suppose to run every minutes and all time in 24 hours. When day... (6 Replies)
Discussion started by: deal732
6 Replies

5. Linux

What's better for running Windows software in Linux, Wine or Windows VMware?

What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies

6. Linux

Running Windows "inside" a Linux-like OS?

I'd like to know if it's possible to run Windows "inside" a Linux-like OS similar to how you can run Linux in Windows, rather than dual-booting them both. As I mentioned in an earlier post, I want to do some serious parallel computing which Windows isn't even capable of at the moment... But I'd... (6 Replies)
Discussion started by: heliotos
6 Replies

7. Solaris

[need help] about after running sys-unconfig and config network for v890

hi expert, i had do sys-unconfig for my v890 sparc and had config for eri0 network interface and hostname but after the server bring up i got this error messages : NIS domainname is www.USSDGmdn-4.com starting rpc services: rpcbind keyserv done. Setting netmask of eri0 to 255.255.255.0... (5 Replies)
Discussion started by: bucci
5 Replies

8. Linux

Running Linux File Manager on Windows XP

OK: apologies (well) in advance if this is as stupid a question as it gets. I need to change the 'owner' on certain files and folders within my Linux web hosting account. Unfortunately I use Windows XP and now need some kind of Windows application that can open a window within XP that lets me... (1 Reply)
Discussion started by: Boa Prinz
1 Replies

9. UNIX Desktop Questions & Answers

Running MS-windows GUI from unix/linux

Hi i need some help , i would like to run a GUI application on windows from unix i dont need to see the gui just to activate it from remote . it shoud be from CLI on the unix . thanks GUY (1 Reply)
Discussion started by: koreng
1 Replies

Featured Tech Videos