473,786 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I compile in VC2008 with a makefile?

After having programmed since 8 years only VB6 I want to learn C++.NET now.
It's amazing that everything has to be prepared first. For example I
want to build the DirectShow baseclass, but the only files I found in
the PSDK\Samples\Mu ltimedia\Direct Show\BaseClasse s are

..cpp
..h
makefile

I would like to ask how I should compile them because I was thinking
that I would have a .sln file. Or can I use the makefile somehow in
VC++2008.NET. Btw, when talking about VC++2008, should I say VC9?
Oct 12 '08 #1
14 1770
I don't understand why you nobody replies. You could even say "It's a
too complicated theme" or "Learn basics first"... just any reply would
be good.
Anna
Oct 12 '08 #2
Hi Anna,
After having programmed since 8 years only VB6 I want to learn
C++.NET now. It's amazing that everything has to be prepared first.
For example I
want to build the DirectShow baseclass, but the only files I found in
the PSDK\Samples\Mu ltimedia\Direct Show\BaseClasse s are

.cpp
.h
makefile

I would like to ask how I should compile them because I was thinking
that I would have a .sln file. Or can I use the makefile somehow in
VC++2008.NET.
In the program group of Visual Studio you should find a Tools sub
group with a "Visual Studio 2008 command prompt". Alternatively
the Platform SDK has a "CMD prompt". Start either of those, set
the current directory to the sample you want to build and use
nmake -f makefile

sln files should be available in samples of MFC and ATL.
Btw, when talking about VC++2008, should I say VC9?
Yes.

--
SvenC
Oct 13 '08 #3
Ah super!!! Thank you!!
Oct 13 '08 #4
nmakeworks great with your explanation/ tutorial (thanks again!), but
why does it produce debug files under WIN2000_DEBUG? I thought that "-f"
would make it build release files. When a file has "d" on the end (like
strmbasD.lib) then it's a debug file, right?
I have learnt that the makefile is a macro. In the makefile I can read

!IFDEF NODEBUG
STRMBASE=strmba se
!else
STRMBASE=strmba sd
!endif

I thought that by saying -f I would set NODEBUG to "TRUE" (which would
be RELEASE, wouldn't it?)

Anna
Oct 13 '08 #5
HHAHHAHAHHAHAHA my first success in C++.
I found out that I have to append NODEBUG=1
So it's nmake -f makefile NODEBUG=1

:-))) So happy
Oct 13 '08 #6
Hi Anna,
HHAHHAHAHHAHAHA my first success in C++.
I found out that I have to append NODEBUG=1
So it's nmake -f makefile NODEBUG=1

:-))) So happy
Good to see you found it yourself.
-f or /f is just the option to the specify the *f*ile to make.

Use nmake /? to get help on nmake's options.

Google for "site:msdn.micr osoft.com nmake" (without quotation
marks) to get some information about nmake from msdn library.

--
SvenC
Oct 13 '08 #7
After my first "yippies" I am a bit downside. Could it be that we C++
programmers spend about 50% of our time compiling something? I don't
want to be sarcastic, I would only like to know what I have to expect. I
am trying to compile OpenCV (an image library) for several hours now,
and I have to fetch all the hints about how to do it from Google without
any success yet. Everytime I have managed to attach the correct
libraries and include and source files to my IDE, another problem pops up.
Could anybody tell me after how many weeks this stress will be gone or
feel normal?

Anna
Oct 14 '08 #8
Hi Anna,
After my first "yippies" I am a bit downside. Could it be that we C++
programmers spend about 50% of our time compiling something? I don't
want to be sarcastic, I would only like to know what I have to
expect. I am trying to compile OpenCV (an image library) for several
hours now,
and I have to fetch all the hints about how to do it from Google
without any success yet. Everytime I have managed to attach the
correct libraries and include and source files to my IDE, another
problem pops up. Could anybody tell me after how many weeks this
stress will be gone or feel normal?
That depends all on the libraries, their documentation and their platform
and compiler support.

When I took some parts of the boost library back while using with VC6
and VC7 they included working makefiles and I had no problems.

When you use the libraries and samples coming with VC9 you should
also have no problems.

So you might be having bad luck with your library.

Did you find this link already?
http://opencvlibrary.sourceforge.net...alC(2b2b).html

--
SvenC
Oct 14 '08 #9
Sven,
thanks, you're really nice. I know this link.
I don't have any problems running an OpenCV application, but there is a
bug in the OpenCV libraries themselves. I want to fix it and then
rebuild it. Maybe it's easy, but at 4 in the morning I gave up :-)
I will try it again now.
Anna
Oct 14 '08 #10

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

Similar topics

1
4475
by: Mario T. Lanza | last post by:
I am working with Visual Studio. The solution I am developing is composed of about 8 separate projects. Some of these projects represent different tiers in the N-tiered architecture (data, business logic, presentation, etc.). Right now, some of the projects are inter-related and reference each other using Project References. When I select "Rebuild Solution" to compile, each project is successfully compiled into its own directory (and...
4
1752
by: Brock | last post by:
Hello all: I apologize if this query seems a bit off-topic. But I couldn't think of another place to post my message. I would like to get an idea of how you all like to handle preprocessor defines. Do you like to create a header file with all the associated defines and then include it with every frickin' source file that's created/modified, OR do you appreciate the ability to pass these on the command line or from a makefile? Can you...
5
1455
by: Michael | last post by:
i experience slower compile times with VC++ 2003 compared to VC+6.0. Anyone experiencing the same? Should that be expected? This ineed matters, when total compilation time is > 1h and you have to wait 10-50% longer...
1
1440
by: cyshao | last post by:
How to compile project by makefile ? I downloaded a VC package. There is not project file, but only a makefile. Could you tell me how to compile this makefile? Thanks Charles Shao^_^
9
2457
by: beet | last post by:
Hi, I am really not good at c/c++. Some simple code.. #include <stdio.h> #include <stdlib.h> #include <math.h> #include "simlibdefs.h"
4
4887
by: Tan | last post by:
Hi folk, I'm trying to install latest OpenSSL version in VS2008 Express Edition on WinXP. I have downloaded and installed the redistributable for VC+ +2008 (including SP1), and also installed the latest version of pre-compiled version of OpenSSL from /www.shininglightpro.com/products/ Win32OpenSSL.html website. So AFAIK there is no need for Perl script compilation and NASM, MASM issue as long as I have the pre-compiled binaries. If I'm...
3
2060
by: =?Utf-8?B?amM=?= | last post by:
Hello, I am trying to install VC2008 SP1, but it requires 5GB on the "C:\" drive. I don't have 5GB available on the "C:\" drive, but I do have 1/2 TB available on the "D:\". How do I change the installation settings to install SP1 on the "D:\" drive? I installed VC2008 on the "D:\" drive.
2
2805
by: vipergt023 | last post by:
Hi, I have an VC2008 (C++) app that reads data from a VC6 app using CArchives over sockets using regular socket reads. On my local computer when I send the packets to 127.0.0.1, it reads it with no issues. On a blank "test" computer with .NET 3.5, VC++ redist, and both applications installed, the local (127.0.0.1) test doesn't work. The VC6 app simply cannot detect the open port of the VC2008 app. No error messages on the VC2008 app. Are...
3
2119
by: tvnaidu | last post by:
Currently I have 15 module folders, each module had C code, also Makefile in each folder, also build script to create shared lib for each module. Each of this Makefile had CFLAGS defined inside, basically -g option enabled in all Makefile, there is a separate line ion each Makefile for CFLAGS, but at the root, I have single build_all script which calls each build script to compile each module and create each shared lib. can I pass this CFLAGS...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.