Hi all
just downloaded the new release. It's missing the Makefile.msvc, attached in
the post of 16 dec, to be put in curlpp/, to build the library using
commandline tools. I'm attaching a Makefile.msvc for examples/ and a
curlpp.vcproj with some settings updated (some include dirs and output file
names).
The autolink.h file can be used with some compilers under win32 to
automatically link curlpp. We can leave it in the curlpp/ or include it into,
say, cURLpp.hpp to have autolink without further requirements. This should
also do no harm on UNIXes, so I would recommend it.
There are tons of warnings under MSVC7.1, but I need some more time to track
them down.
All but example01 and example11 do not compile, need some time to look at it.
IMPORTANT: example11 does not download files correctly! It seems that some
line-end translation happens, even if outfile is created with "wb".
In short, every '\n' is translated to '\r\n'. Is it possible this is a bug in
cURLpp?
Yes, I will provide a README.Win32 ASAP.
--
Giuseppe "Cowo" Corbelli ~\/~ My software: http://cowo.yoda2000.net
-<! Non c'e' niente da dire in proposito. Tutto quello che uno deve fare e'
colpire i tasti giusti al momento giusto, e lo strumento suona da solo. !>-
J.S. Bach
#############################################################
#
# Makefile for building libcurlpp examples with MSVC
# All examples are linked against curlpp release static library
# Giuseppe "Cowo" Corbelli - cowo at lugbs dot linux dot it
#
# Usage: nmake -f Makefile.msvc all
# Should be invoked from examples/ directory
# Edit the LIBCURL_PATH or set LIBCURL_PATH envvar
#
##############################################################
LIB_NAME = libcurlpp
LIB_NAME_DEBUG = libcurlppd
#############################################################
!IFNDEF LIBCURL_PATH
LIBCURL_PATH = ../../curl
!ENDIF
CCNODBG = cl.exe /MD /O2 /DNDEBUG /GR /Y-
CCDEBUG = cl.exe /MDd /Od /Gm /Zi /D_DEBUG /GZ /GR
CFLAGS = /I ../ /I "$(LIBCURL_PATH)/include" /DCURLPP_STATICLIB /nologo /W3 /GX /DWIN32 /YX /FD /c
LNKLIB = link.exe /INCREMENTAL:NO /OPT:NOREF
LFLAGS = /nologo /LIBPATH:"../release" /LIBPATH:"$(LIBCURL_PATH)/lib" libcurlpp.lib $(CURLLIB)
CURLLIB = libcurl_imp.lib
CC = $(CCNODBG) $(CFLAGSLIB)
LNK = $(LNKLIB) $(LFLAGS)
example01 : example01.o
$(LNK) /out:example01.exe example01.o
example02 : example02.o
$(LNK) /out:example02.exe example02.o
example03 : example03.o
$(LNK) /out:example03.exe example03.o
example04 : example04.o
$(LNK) /out:example04.exe example04.o
example05 : example05.o
$(LNK) /out:example05.exe example05.o
example06 : example06.o
$(LNK) /out:example06.exe example06.o
example07 : example07.o
$(LNK) /out:example07.exe example07.o
example08 : example08.o
$(LNK) /out:example08.exe example08.o
example09 : example09.o
$(LNK) /out:example09.exe example09.o
example10 : example10.o
$(LNK) /out:example10.exe example10.o
example11 : example11.o
$(LNK) /out:example11.exe example11.o
TARGET = \
example01 \
example02 \
example03 \
example04 \
example05 \
example06 \
example07 \
example08 \
example09 \
example10 \
example11
all : $(TARGET)
.SUFFIXES: .cpp .o
.cpp.o:
$(CC) $(CFLAGS) /Fo"$@" $<
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="curlpp"
ProjectGUID="{DD2D30B5-B2CB-4DBC-9BA5-039F8CF7D087}"
RootNamespace="curlpp"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""$(ProjectDir)";"..\curl-7.15.0\include""
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcurl_imp.lib"
OutputFile="$(OutDir)/libcurlppd.dll"
AdditionalLibraryDirectories="../curl-7.15.0/lib"
ImportLibrary="$(OutDir)/libcurlppd.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="1"
AdditionalIncludeDirectories=""$(ProjectDir)";"../curl-7.15.0/include""
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcurl_imp.lib"
OutputFile="$(OutDir)/libcurlpp.dll"
AdditionalLibraryDirectories="../curl-7.15.0/lib"
ImportLibrary="$(OutDir)/libcurlpp.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release (dynamic)|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\libcurl\include"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcurl.lib"
AdditionalLibraryDirectories="../libcurl/lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="curlpp\CurlHandle.cpp">
</File>
<File
RelativePath="curlpp\cURLpp.cpp">
</File>
<File
RelativePath="curlpp\Easy.cpp">
</File>
<File
RelativePath="curlpp\Exception.cpp">
</File>
<File
RelativePath="curlpp\Form.cpp">
</File>
<File
RelativePath="curlpp\OptionBase.cpp">
</File>
<File
RelativePath="curlpp\OptionList.cpp">
</File>
<File
RelativePath="curlpp\SList.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath="curlpp\cURL.hpp">
</File>
<File
RelativePath="curlpp\CurlHandle.hpp">
</File>
<File
RelativePath="curlpp\CurlHandle.inl">
</File>
<File
RelativePath="curlpp\cURLpp.hpp">
</File>
<File
RelativePath="curlpp\Easy.hpp">
</File>
<File
RelativePath="curlpp\Exception.hpp">
</File>
<File
RelativePath="curlpp\Form.hpp">
</File>
<File
RelativePath="curlpp\NonCopyable.hpp">
</File>
<File
RelativePath="curlpp\Option.hpp">
</File>
<File
RelativePath="curlpp\Option.inl">
</File>
<File
RelativePath="curlpp\OptionBase.hpp">
</File>
<File
RelativePath="curlpp\OptionContainer.hpp">
</File>
<File
RelativePath="curlpp\OptionContainer.inl">
</File>
<File
RelativePath="curlpp\OptionContainerType.hpp">
</File>
<File
RelativePath="curlpp\OptionList.hpp">
</File>
<File
RelativePath="curlpp\Options.hpp">
</File>
<File
RelativePath="curlpp\OptionSetter.hpp">
</File>
<File
RelativePath="curlpp\OptionSetter.inl">
</File>
<File
RelativePath="curlpp\SList.hpp">
</File>
<File
RelativePath="curlpp\StorageOptions.hpp">
</File>
<File
RelativePath="curlpp\StorageOptions.inl">
</File>
<File
RelativePath="curlpp\TypeTrait.hpp">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2006-01-09