English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I Have A C Code And Like To Check It On Linux. My Teacher Said To Use Code Efficiently Try It In linux. Whether It Is Possible To Use The Exe Build On Tc(Dos Based) In Linux
I Dont Know Gcc Is Installed Or Not But In Add Remove I Check It Is Ok. I Just Want To Change My Platform From Windows To Linux. Is It Possible TO Use C code In Perl Or any Other S W In Linux. The Code Is About To Use A Usb Camera But I Do Not Have Thorough Knowledge Of Camera And Usb In Linux Platform,By This Code I Would Like To Use The Still Images As The Information To Take Decession My concept Is Based On Capturing Events And Perform Decession Or Any action, If I Could Use Exe Files On Linux It May Another Case But Building The Code In Linux Itself Will Provide Me The Integrity Level High. I Have A Low Quality Usb Camera Its Company Is Quantum Is There Previously Intry For This Camera In Unix Or Not My Id Is harshal_joshi3@yahoo.com
I know It Is A difficult Task But I Think In Linux Everything Is Possible

2007-03-12 23:56:05 · 2 answers · asked by Harsh 1 in Computers & Internet Programming & Design

2 answers

The most basic gcc usage is
gcc something.c -o something
where something is the source file you are compiling.

For more complicated things you usually have a makefile, which specify what files get rebuilt when the code changes. There are several gcc and make tutorials if you search for them.

Making it work on both Linux and Windows is somewhat difficult, but should be straightforward if you have portable code. You can get a more Linux like environment on Windows with Cygwin. The problem is if you write using Linux USB drivers that does not translate well over to Windows.

As to perl, I don't know a way of calling C code directly. You can write a C program which a perl script would execute.

What you might want to do is make a perl or shell script to capture the images using existing programs, then write C or whatever code to process them.

2007-03-14 07:25:43 · answer #1 · answered by John Mahowald 5 · 0 0

that's complicated to grant a definitive answer without understanding the right blunders message, yet i will relay my own adventure with Dev-C++ to you. I used Dev-C++ for a school task as quickly as some years back. this methodology labored completely in Dev-C++, so I grew to become it in. I immediately have been given a 60/a hundred on it because of the fact the professor claimed it "did no longer assemble." What looked as though it would take place grew to become into Dev-C++ assumes specific libraries are secure, and because my application labored in Dev-C++ without explicitly alongside with them, I "forgot" to incorporate them. The fix is to pass by way of your code and ensure you have all of the mandatory libraries explicitly secure. If I keep in mind stunning, the incorporate I "forgot" grew to become into iostream. yet another subject may be which you're forgetting some parameters while compiling from the command line.

2016-10-18 06:29:03 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers