473,547 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

STLPort in VC++ - Compile problems


Platform:window 2000 professional, VC++6.0 +SP5
STLport: STLport 5.0.2

While test STLport following "STLport README for Microsoft Visual C++
compilers." of README.msvc(rea dme.txt), there is a error:NMAKE: fatal
error U1077: 'cl': return code '0x2'stop.

I can build STLport without any error but a warning, after buiding I
test it, a error is appear.

Can anyone tell me how to reslove this problem??
Whether this problem have a negative effect of using STLport or not???

Thanks a lot.

I am online , and waiting......
+----------------------------------------------------------------+
| Attachment filename: readme.txt |
|Download attachment: http://www.codecomments.com/attachme...postid=2764376 |
+----------------------------------------------------------------+
--
PangFromChina
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Apr 27 '06 #1
1 6308

First thanks for your help.Thanks a lot!!!!
I build STLport following:

=============== =============== =============== =====
STLport README for Microsoft Visual C++ compilers.
=============== =============== =============== =====

by: Francois Dumont, du**@stlport.co m, last edited 08/02/2005

============
Introduction
============
This document describes how STLport can be compiled and used with Microsoft
Visual C++ 6 SP5. It can also be used for the MSVC++ family.

For any further comments or questsion visit STLport mailing lists
http://stlport.sourceforge.net/Maillists.shtml or forums
https://sourceforge.net/forum/?group_id=146814

=============
Prerequisites
=============
To build and use STLport you will need following tools and libraries:
- Microsoft Visual C++ 6.0 with at least Service Pack 5 or any higher
version.

=============== ====
Configuring STLport
=============== ====
This is an optional step for the MSVC++ compilers, if you don't want to pass
throught it just move to the 'Building STLport' section.

Go to the STLport build/lib folder. Run
configure --help

This command will present you the different available build options. Just
follow
the instructions to set STLport configuration according your needs.

=============== =
Building STLport
=============== =
This is a step by step description of the actions to take in order to have
the STLport library built:

1. Open a console window. You can get it executing cmd or command depending
on your Windows OS.

2. Go to MSVC++ Bin directory with a default MSVC6 install it is
cd "C:\Program Files\Microsoft Visual Studio\VC98\Bin "

3. Run the vcvars32.bat script. This sets the environment variables required
to have the MSVC++ compiler run during the build process. The most important
one is the PATH variable so that you can call the cl.exe command which is the
MSVC++ command line compiler. [You may omit this step, if you chose 'Install
paths
to access command-line tools' during Microsoft Visual Studio installation
procedure.]

4. Go to the STLport build/lib folder:
cd C:\STLport\buil d\lib

5. Run the following command:
nmake /fnmake-vc6.mak install

nmake is the make utility from Microsoft. /f is an nmake option
telling it which make file script to use. You have of course to grant the
closer make file to your effective compiler.

Once the command returns, you will have all the necessary libraries within
the STLport lib folder. For a description of the generated libraries check
the README
file within the src folder. You can also set special make process options,
you will
find a list of those in the README.options file once again in the build/lib
folder.

===============
Testing STLport
===============
You can use the unit tests to verify STLport behaves correctly. Change into
STLports 'build/test/unit' folder and type:

nmake /fnmake-vc6.mak install

Once the unit test is built you just need to run it. They can be found
within the STLport bin folder.

=============
Using STLport
=============
Adjust your include and link paths in MSVC IDE (in 'Tools -> Options ->
Directories'
for MSVC6 IDE). In the include files add the path to STLport's 'stlport'
folder.
Make sure it is the first directory listed there. Add STLport's 'lib' folder
for
the library files (order of paths doesn't matter here).

Now you should be ready to use STLport.

============
Known issues
============

1. InterlockedIncr ement

If you experiment trouble with the InterlockedIncr ement Win32 API function
like the following message:

C:\Program Files\Microsoft SDK\Include\.\w inbase.h(1392) : error C2733:
second C
linkage of overloaded function 'InterlockedInc rement' not allowed
C:\Program Files\Microsoft SDK\Include\.\w inbase.h(1390) : see declaration of
'InterlockedInc rement'

It means that you are using the new Microsoft platform SDK. There is no
way to known it from STLport so you have to signal it in the
stlport/stl_user_config .h file (uncomment _STLP_NEW_PLATF ORM_SDK in this
file).

2. Native C/C++ library headers location

If you experiment trouble with location of ctime and other Standard headers
while building or using STLport you might be using the compiler coming with a
platform SDK. If so please uncomment _STLP_USING_PLA TFORM_SDK_COMPI LER in
stlport/stl_user_config .h. If it still do not find native headers you will
perhaps
need to change native headers relative path used by STLport. In this case use
_STLP_NATIVE_IN CLUDE_PATH and associated macro in stlport/stl/_site_config.h.

4. C symbols in std namespace

The MSVC++ 6 has a bug when dealing with C symbols imported within the std
namespace. If you write the following code:

#include <cstdio>

using namespace std;

int main(int, char**) {
int res = abs(-1);
return 0;
}

VC6 will report an ambiguous symbol because it do not know if it has to use
::abs or std::abs even if they are the same function. For this reason
injection of
C symbols in the std namespace has been disable by default. To force it you
have to
define the _STLP_DO_IMPORT _CSTD_FUNCTIONS macro. Doing so you will have to
explicitely
scope all your C functions calls.
=============== =============== =============== =============== ========
After step 4,step5 in Building stlport,
I find the library in C:\STLport\lib.
And the library are :stlportstld_st atic.5.0.lib
stlportstld.5.0 .lib
stlportd_static .5.0.lib
stlportd.5.0.li b
stlport_static. 5.0.lib
stlport.5.0.lib
I find the dll in C:\STLport\bin
And the dlls are:
stlport.5.0.dll
stlportd.5.0.dl l
stlportstld.5.0 .dll
So I think STLport have been compiled successfully..

But While I do the following steps in Testing STLport, the following errors
appear:
Show in the picture study.jgp

Whether this problem have a negative effect of using STLport or not???

Thanks a lot!!

May 10 '06 #2

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

Similar topics

1
3251
by: Gary | last post by:
I am trying to compile the STLPORT 4.5.3 using g++ 3.3 compiler on sun. I have modified the stl_gcc.h file to point to the correct include path for the compiler. I am getting the following errors: In file included from /opt/nortel/gcc-3.3/backward/iostream.h:31, from /export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:5, from...
4
1665
by: Icosahedron | last post by:
I'm sure it's been done. I'm sure that I'm an idiot for even asking the question, but has anyone been successful in getting Comeau 4.3.0.1 to compile STLPort, or even use STLPort in a program (using the MSVC7 backend, I should state)? There doesn't seem to be any out of the box support for Comeau on Win32/MSVC7 in STLPort, but that's...
3
2782
by: Jürgen Devlieghere | last post by:
Hi, We try to use GRETA in combination with STLPort (Due to the inherent multi-threading problems of the Dumkinware STL in Visual Studio 6 when using the Multithreaded dll runtime). The source file of the offending statement looks like this (the last line causes the compilation error): TCHAR szBuffer = _T(""); regex::match_results...
7
1899
by: Gernot Frisch | last post by:
Hi, we have to use stlport here, but With a code like this: void DoSomething(int english_version) { // make no use of english_version }
0
2333
by: francois.cppdevs | last post by:
Hi C++ supporters I just wanted to let you know that STLport 5.1.0 has been released, it is available here: https://sourceforge.net/projects/stlport/ Since 5.0 this library implements some interesting (and original I hope) features like: - template expression for string concatenation (activable through
1
1656
by: Alessandro Monopoli | last post by:
Hi all! I'm having HUGE problems converting some code from STLPort 4.6 to 5.1, to make some old program compile under Visual Studio 2005. Do you know something about? Or a tutorial or something? The code is the Renderware openExport. Bye! Alex
1
1575
by: Alessandro Monopoli | last post by:
Hi! I have tons of problems linking STLPort to my project: it seems the projects does not find any function or object in the lib, that I have compiled following the instructions (including make install) with Visual Studio 2005. Visual Studio finds the .lib file, but it seems it doesn't find the functions.
5
1509
by: Aman JIANG | last post by:
vc8 + STLport 5.1.3: cout << fixed << numeric_limits<double>::max(); It result a runtime error.
2
2606
by: NvrBst | last post by:
I'm not too much of a C++ programmer but I have a bunch of C programs (they compile with GNU) and want to get them to compile in VC++ 2008. In Unix I go "./configure" and it makes a "Makefile". I then do "make" and when thats done I do "make install". Is there some way to easily get this type of project working in VC++ 2008? I do "New...
0
7507
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...
0
7435
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...
1
7461
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...
0
6030
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...
1
5361
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...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
747
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...

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.