473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Coding a eventual Unix C program in Visual Studio...help!

140 100+
Hi,

I've not coded in C since College, and am now having to convert a VB.net app into a C program that will run on a Unix box (GNU Linux).

Our development environment is pure Windows, with Visual Studio.

My plan is to code this C program in a C++ Project in Visual Studio, and then ftp it over to a unix box we have access to (one of our clients boxes), and use a make file to compile it in gcc(if I remember that correctly), can anyone help me come up with a suitable make file, to use on the Unix box? I'm assuming that a make file will compile the C program...again this is very dated knowledge for me...

I've attempted to scan through the gcc man file, but first comment :

"LONGEST MAN FILE EVER!"

Thanks for any help/suggestions you can offer,
Sitko.
Oct 25 '07 #1
2 1958
weaknessforcats
9,208 Expert Mod 8TB
Isn't there a tool for Unix/Linux that generates the makefile from a project??

Writing a makefile takes me back to 1975. I didn't know people still did that.
Oct 25 '07 #2
sitko
140 100+
I got a make file from my boss...but now I'm wondering what does the "rm" at the end of the make file do? does that zap the c file or does it just zap an intermediate file? and why does SHELL get set to something but then not used? Guess, I'll just try it...

Expand|Select|Wrap|Line Numbers
  1. CC = gcc
  2. EFILE1 = DeckmakerC
  3. SHELL = /bin/bash 
  4.  
  5.  
  6. all: $(EFILE1)
  7.  
  8. $(EFILE1): $(EFILE1).c
  9.     @$(CC) $(EFILE1).c -lm -o $(EFILE1) 
  10.     @echo "Compiled executable \""$(EFILE1)"\""
  11.  
  12. clean:
  13.     @rm $(EFILE1)
  14.  
A follow-up question:
I want to make a file directory in my code. I know the Unix command is "mkdir <directory name>. How would I call this from the C code?

Thanks,
Sitko.
Oct 25 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Lee Stewart | last post by:
I have a custom piece of code that I need to call from PHP5, so I'm going to write an extension that will handle things for me. This is becoming urgent - my original plan didn't work out and I'm...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
0
by: niket patel | last post by:
Hi There is a unix server and and we access unix and perform its commond using exceed or ftp through dos. Now i want to create an application in Visual Studio C#.Net 2003 such that i can create...
7
by: Hardy &&& | last post by:
Please can any body tell me: How can I operate (or deliver) the " Visual C++.NET ", from its mother program " MS Visual Studio 2005"?? A beginner needs Help. Thank you all....
19
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4....
4
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, I know that we can open Visual studio command prompt from start menu. But i have been assigned a task in which i have to do that in coding. So that when i run the c# program, the visual studio...
1
RRick
by: RRick | last post by:
I have a unix C++ project that needs to be converted over to windows visual studio. I'm not sure of the exact version of VS, but it's a recent version, probabIy 2003 or 2005. I would like the...
4
by: yasir72 | last post by:
Hi, My programmer write software program using Visual Studio Dot NET 2005. The file become 30GB. We having problem to find out, how to write coding for installation and burnt this large data into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.