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
How Can I Use Gcc For My C Code I Copied My Code On Desktop Of Linux Red Hat? How Gcc Works And Can I Use Exe.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment