Re: [info-performer] compile simple.cxx uinder windows vc++.net

Date view Thread view Subject view Author view

From: Alexandre Naaman (naaman++at++laplace.engr.sgi.com)
Date: 03/24/2004 13:25:03


Hi Enrico,

> hi,
>
> I just created an empty solution in vc++ .net, made a new win32-project
> / console / empty. Then I added a c++ source file .cpp and copied the
> simple.cxx inside. When I now try to compile it, it finds lots of
> datatype conversion failures (warning C4244) and also a lot of lines
> saying error LNK2002.

Warnings are a fact of life ... but you can probably ask the compiler to
ignore them. As for the link problem, you can look at page 238 of the
Getting Started Guide which can be located as one of the menu items by
going throuhg Window's start menu. Just to sum things up (and looking at
it now I've noticed a slight error in the guide), you need to link with
(at a bare minimum) libpf.lib and libpfdu-util.lib.

You can do this from within Visual Studio (don't know about C++ .Net
stuff) by going to "Project -> Settings" (ALT-F7) and then selecting the
"Link" tab (make sure that the project name is what's highlighted on the
left tree window which determines what this dialog is used to set) and
then in the "Object/library modules" text entry box add these two
libraries to the beginning of the list.

> Is this the complete wrong way to do it?
> Probably someone could explain me how to setup microsoft visual c++ .net
> under windows to compile this simple.cxx please? or is there any tutorial on
> this? I couldnīt find any!

No, you're doing things fine, except for you're not managing to link
properly.

Sadly there isn't a step-by-step tutorial for how to build Win32 Performer
applications. I would definitely be a nice-to-have ...

> thanks a lot
>

Also don't forget that you may need to modify the path for the location of
the include files and libraries used to compile/link by going to the
"Tools -> Options..." window and modifying the settings for the Include
and Library files.

The best place to get information about all of this is in the Developer
Release Notes which can also be found from the Windows Start menu.

Good luck,

Alex.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Mar 24 2004 - 13:26:32 PST