473,396 Members | 1,774 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,396 software developers and data experts.

how to make linux makefile work in visual c++?

I used to code in unix. Now I need to run them in Visual C++. But I
don't know how to change the makefile so that it will work for visual
c++. Can anyone help me out?

Nov 14 '05 #1
4 1740
ch********@gmail.com wrote:
I used to code in unix. Now I need to run them in Visual C++. But I
don't know how to change the makefile so that it will work for visual
c++. Can anyone help me out?

Use gnu make, fix up your .SUFFIXES and macros to correspond with VC++.
Some people even go so far as to put in a
mv $*.obj $*.o
step to avoid translating dependencies.
--
Tim Prince
Nov 14 '05 #2
Thanks for your reply. I have never used gnu make before. Is there any
step by step instruction for a newbie like me?

Nov 14 '05 #3
ch********@gmail.com wrote:
Thanks for your reply. I have never used gnu make before. Is there any
step by step instruction for a newbie like me?

gnu make should pose no big surprises if you used make on Unix.
http://www.gnu.org/software/make/manual/make.html I suppose the most
popular one for Windows is included in cygwin
http://sourceware.redhat.com/cygwin/
Evidently, the defaults are set up Unix style, so you must over-ride.
--
Tim Prince
Nov 14 '05 #4
I'll go for gmake. Thanks a lot.

Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
0
by: pptran | last post by:
Hi, I am pretty new to building and installing Perl. Can someone help explain the severity of the following Perl 5.8.4 build error message? ==================================================...
19
by: milkyway | last post by:
Hello, I am running under Suse Linux and am putting together some code written in C. I am not clear on how to create makefiles and was wondering if there were any "makefile tools" out there. If...
4
by: David Wheeler | last post by:
4.8-STABLE FreeBSD 4.8-STABLE i386 sahlins# cd postgresql-7.4.2/contrib/pg_autovacuum sahlins# make "../../src/Makefile.global", line 38: Missing dependency operator...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
2
by: Ralf Propach | last post by:
I have a visual studio 2005 project that consists of two managed C++ classes and some unmanaged C functions. The output of this project is a dll, that is loaded by a program with LoadLibrary()....
21
by: Johs | last post by:
Are there any difference between writting C++ in linux or Windows? I was told that it was only a matter of available IDE's (eclipse for both platforms, but only Visual Studio for Windows) but are...
21
by: Johs | last post by:
I use Ubuntu 7.04 and have trouble finding a good editor that has autocompletion (when typing std:: or using "." on strings or pressing ctrl+space). I have tried eclipse with CDT 3.1.2 but it...
7
by: Khookie | last post by:
I'm required to write an app that can compile on both Windows (cl/ nmake) & Linux (gcc/make) targets, so I was wondering whether anyone has any guidelines on how to do it properly. Even pointing...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.