error while compiling where to put natupnp.h ?

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
Zinden
Posts: 11
Joined: 2004-12-31 11:47
Location: Sweden
Contact:

error while compiling where to put natupnp.h ?

Post by Zinden » 2004-12-31 11:55


------ Rebuild All started: Project: zlib, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'zlib', configuration 'Release|Win32'.
Compiling...
zutil.c
uncompr.c
trees.c
inftrees.c
inflate.c
inffast.c
deflate.c
crc32.c
compress.c
adler32.c
Generating Code...
Creating library...

Build log was saved at "file://e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\vc7\Release\zlib\BuildLog.htm"
zlib - 0 error(s), 0 warning(s)


------ Rebuild All started: Project: bzip2, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'bzip2', configuration 'Release|Win32'.
Compiling...
randtable.c
huffman.c
decompress.c
crctable.c
compress.c
bzlib.c
blocksort.c
Generating Code...
Creating library...

Build log was saved at "file://e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\vc7\Release\bzip\BuildLog.htm"
bzip2 - 0 error(s), 0 warning(s)


------ Rebuild All started: Project: client, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'client', configuration 'Release|Win32'.
Building StringDefs.cpp and Example.xml from StringDefs.h (you need python installed for this to work)
Compiling...
stdinc.cpp
Compiling...
ZUtils.cpp
Util.cpp
UserConnection.cpp
User.cpp
UploadManager.cpp
TimerManager.cpp
TigerHash.cpp
Thread.cpp
Text.cpp
StringTokenizer.cpp
StringDefs.cpp
c1xx : fatal error C1083: Cannot open source file: '.\client\StringDefs.cpp': No such file or directory
Socket.cpp
SimpleXML.cpp
ShareManager.cpp
SFVReader.cpp
SettingsManager.cpp
ServerSocket.cpp
SearchManager.cpp
ResourceManager.cpp
QueueManager.cpp
Generating Code...
Compiling...
NmdcHub.cpp
client\NmdcHub.cpp(37) : warning C4355: 'this' : used in base member initializer list
LogManager.cpp
HubManager.cpp
HttpConnection.cpp
HashManager.cpp
FinishedManager.cpp
Encoder.cpp
DownloadManager.cpp
DirectoryListing.cpp
DCPlusPlus.cpp
CryptoManager.cpp
ConnectionManager.cpp
ClientManager.cpp
Client.cpp
BZUtils.cpp
BufferedSocket.cpp
ADLSearch.cpp
AdcHub.cpp
AdcCommand.cpp
Generating Code...

Build log was saved at "file://e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\vc7\Release\client\BuildLog.htm"
client - 1 error(s), 1 warning(s)


------ Rebuild All started: Project: DCPlusPlus, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'DCPlusPlus', configuration 'Release|Win32'.
Compiling...
stdafx.cpp
e:\DC++ Clients\DC++\DCPlusPlus-0.668-src\windows\stdafx.h(46) : fatal error C1083: Cannot open include file: 'atlapp.h': No such file or directory

Build log was saved at "file://e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\vc7\Release\windows\BuildLog.htm"
DCPlusPlus - 1 error(s), 0 warning(s)


------ Rebuild All started: Project: help, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'help', configuration 'Release|Win32'.
Compiling Help File
Microsoft HTML Help Compiler 4.74.8702
Compiling e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\app\DCPlusPlus.chm
office11.css
index.html
changelog.html
settings_advanced.html
settings_appearance.html
settings_downloads.html
settings_general.html
settings_logs_and_sound.html
settings_sharing.html
settings_usercommands.html
chat_commands.html
non-routable.html
plusplus_tag.html
netiquette.html
credits.html
adlsearch.html
favorite_hubs.html
favorite_users.html
fdl.html
settings_favoritedirs.html
faq_keyboard_commands.html
faq_upnp.html
faq_activemode.html
faq_university.html
faq_nosearch.html
faq_slowdownload.html
logo.gif
external.png
Compile time: 0 minutes, 2 seconds
25 Topics
80 Local links
10 Internet links
2 Graphics
Created e:\DC++ Clients\Dc++\DCPlusPlus-0.668-src\app\DCPlusPlus.chm, 159,876 bytes
Compression decreased file by 74,821 bytes.

Build log was saved at "file://E:\DC++ Clients\DC++\DCPlusPlus-0.668-src\vc7\Debug\help\BuildLog.htm"
help - 0 error(s), 0 warning(s)


---------------------- Done ----------------------

Rebuild All: 3 succeeded, 2 failed, 0 skipped


As you all see i get 2 errors, im not sure how to fix them.
Im kinda noob in C++ but im trying to learn :)
I also put in stlport and wtl as you should.
If it is python thingy, can someone put in a download link for me?
I hope someone can help me out to get a compiled dc++ for first time on my own :)
Last edited by Zinden on 2004-12-31 15:47, edited 2 times in total.

Gasman1015
Posts: 184
Joined: 2003-05-26 11:29
Location: UK

Post by Gasman1015 » 2004-12-31 13:06

atlapp.h is part of WTL, therefore you have not installed it correctly, you only need to copy the include folder from the WTL zip or rar.

Python Google is your friend.

You could have found this yourself just by browsing a few of the other posts here.
Always remember you're unique, just like everyone else.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-31 13:10

... or by reading Compile.txt
The world is coming to an end. Please log off.

DC++ Guide | Words

Zinden
Posts: 11
Joined: 2004-12-31 11:47
Location: Sweden
Contact:

Post by Zinden » 2004-12-31 14:42

i tried to search for python link but no luck :(
but now i got it and installed + changed path to WTL to include folder instead.
but im getting 1 error still.



------ Rebuild All started: Project: zlib, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'zlib', configuration 'Debug|Win32'.
Compiling...
zutil.c
uncompr.c
trees.c
inftrees.c
inflate.c
inffast.c
deflate.c
crc32.c
compress.c
adler32.c
Generating Code...
Creating library...

Build log was saved at "file://f:\DCPlusPlus-0.668-src\vc7\Debug\zlib\BuildLog.htm"
zlib - 0 error(s), 0 warning(s)


------ Rebuild All started: Project: bzip2, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'bzip2', configuration 'Debug|Win32'.
Compiling...
randtable.c
huffman.c
decompress.c
crctable.c
compress.c
bzlib.c
blocksort.c
Generating Code...
Creating library...

Build log was saved at "file://f:\DCPlusPlus-0.668-src\vc7\Debug\bzip\BuildLog.htm"
bzip2 - 0 error(s), 0 warning(s)


------ Rebuild All started: Project: client, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'client', configuration 'Debug|Win32'.
Building StringDefs.cpp and Example.xml from StringDefs.h (you need python installed for this to work)
Compiling...
stdinc.cpp
Compiling...
ZUtils.cpp
Util.cpp
UserConnection.cpp
User.cpp
UploadManager.cpp
TimerManager.cpp
TigerHash.cpp
Thread.cpp
Text.cpp
StringTokenizer.cpp
StringDefs.cpp
Socket.cpp
SimpleXML.cpp
ShareManager.cpp
SFVReader.cpp
SettingsManager.cpp
ServerSocket.cpp
SearchManager.cpp
ResourceManager.cpp
QueueManager.cpp
Generating Code...
Compiling...
NmdcHub.cpp
f:\DCPlusPlus-0.668-src\client\NmdcHub.cpp(37) : warning C4355: 'this' : used in base member initializer list
LogManager.cpp
HubManager.cpp
HttpConnection.cpp
HashManager.cpp
FinishedManager.cpp
Encoder.cpp
DownloadManager.cpp
DirectoryListing.cpp
DCPlusPlus.cpp
CryptoManager.cpp
ConnectionManager.cpp
ClientManager.cpp
Client.cpp
BZUtils.cpp
BufferedSocket.cpp
ADLSearch.cpp
AdcHub.cpp
AdcCommand.cpp
Generating Code...
Creating library...

Build log was saved at "file://f:\DCPlusPlus-0.668-src\vc7\Debug\client\BuildLog.htm"
client - 0 error(s), 1 warning(s)


------ Rebuild All started: Project: DCPlusPlus, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'DCPlusPlus', configuration 'Debug|Win32'.
Compiling...
stdafx.cpp
Compiling...
WinUtil.cpp
UsersFrame.cpp
UPnP.cpp
f:\DCPlusPlus-0.668-src\windows\UPnP.h(26) : fatal error C1083: Cannot open include file: 'natupnp.h': No such file or directory
UploadPage.cpp
UCPage.cpp
TreePropertySheet.cpp
TransferView.cpp
TextFrame.cpp
StatsFrame.cpp
SpyFrame.cpp
SearchFrm.cpp
QueueFrame.cpp
PublicHubsFrm.cpp
PropPage.cpp
PropertiesDlg.cpp
PrivateFrame.cpp
NotepadFrame.cpp
MainFrm.cpp
f:\DCPlusPlus-0.668-src\windows\UPnP.h(26) : fatal error C1083: Cannot open include file: 'natupnp.h': No such file or directory
main.cpp
f:\DCPlusPlus-0.668-src\windows\UPnP.h(26) : fatal error C1083: Cannot open include file: 'natupnp.h': No such file or directory
HubFrame.cpp
Generating Code...
Compiling...
GeneralPage.cpp
FinishedULFrame.cpp
FinishedFrame.cpp
FavoritesFrm.cpp
FavoriteDirsPage.cpp
FavHubProperties.cpp
ExtendedTrace.cpp
ExListViewCtrl.cpp
DownloadPage.cpp
DirectoryListingFrm.cpp
CommandDlg.cpp
AppearancePage.cpp
AdvancedPage.cpp
Advanced2Page.cpp
ADLSProperties.cpp
ADLSearchFrame.cpp
Generating Code...

Build log was saved at "file://f:\DCPlusPlus-0.668-src\vc7\Debug\windows\\BuildLog.htm"
DCPlusPlus - 3 error(s), 0 warning(s)


------ Rebuild All started: Project: help, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'help', configuration 'Release|Win32'.
Compiling Help File
Microsoft HTML Help Compiler 4.74.8702
Compiling f:\DCPlusPlus-0.668-src\app\DCPlusPlus.chm
office11.css
index.html
changelog.html
settings_advanced.html
settings_appearance.html
settings_downloads.html
settings_general.html
settings_logs_and_sound.html
settings_sharing.html
settings_usercommands.html
chat_commands.html
non-routable.html
plusplus_tag.html
netiquette.html
credits.html
adlsearch.html
favorite_hubs.html
favorite_users.html
fdl.html
settings_favoritedirs.html
faq_keyboard_commands.html
faq_upnp.html
faq_activemode.html
faq_university.html
faq_nosearch.html
faq_slowdownload.html
logo.gif
external.png
Compile time: 0 minutes, 2 seconds
25 Topics
80 Local links
10 Internet links
2 Graphics
Created f:\DCPlusPlus-0.668-src\app\DCPlusPlus.chm, 160,504 bytes
Compression decreased file by 75,274 bytes.

Build log was saved at "file://F:\DCPlusPlus-0.668-src\vc7\Debug\help\BuildLog.htm"
help - 0 error(s), 0 warning(s)


---------------------- Done ----------------------

Rebuild All: 4 succeeded, 1 failed, 0 skipped

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2004-12-31 15:02

It's the third hit on google ;)
http://www.google.com/search?hl=en&lr=& ... tnG=Search
2) You most probably have to update your Platform SDK, http://msdn.microsoft.com will tell you how. You have to do this if you get an error that "natupnp.h" is missing. Since all you need is this one file, you can ask someone at the dev hub to supply it for you (or look for it in the DC++ bugzilla, it's attached to one of the bugs)
Search the forum or read two or three threads down for a link to natupnp.h

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-12-31 15:03

The file you're missing is posted in the Bugzilla... search for it.

Zinden
Posts: 11
Joined: 2004-12-31 11:47
Location: Sweden
Contact:

Post by Zinden » 2004-12-31 15:06

lol, i thought that file was for non Win XP users only....
i think i read compile too fast :)
i looked in it again and saw it was about a dll file for non win xp users had to get :)
Well thanks all for helping me, im away testing once more.

Zinden
Posts: 11
Joined: 2004-12-31 11:47
Location: Sweden
Contact:

Post by Zinden » 2004-12-31 15:33

last question, where do i put this files?
natupnp.h
natupnp.idl

in DCPlusPlus-0.668-src\windows\ ?

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2004-12-31 17:08

Put them in any one of your include directories.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2005-01-02 16:16

Though since it's missing from the SDK, you might want to put it with the other SDK files - on my computer, it's:
"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include"

Locked