Jump to content

Problem with C++


Recommended Posts

Hi everyone,

There's a problem with Visual C++ 2010 Express, I can't apply that :

PART 7 - CONFIGURING C++ Edit by Schmoo: No Idea what this part is required for, I have never done something alike • Open Visual C++ • Go to “Tools”, “Options” • Click the “+” next to Projects and Solutions, then click VC++ Directories • Make sure the drop down menu says “Executable Files”

Because there is no VC++ Directories in the new release (image available here).

Can someone indicate me how to go ahead ? Or, like Schmoo said, is it possible to jump to part 8 without doing nothing ?

Thank you for your help.

Link to comment
Share on other sites

I think I could pass this one, but while trying :

PART 8 - COMPILING MANGOS AND SCRIPTDEV2 • Close the window when it’s done • Go to your C:\\Mangos\\src\\bindings\\ScriptDev2 • Open the “sln” file that fit your version of C++......

I had this error message (I tried to translate, because original is in french) :

1>------ Build started: Project: ScriptDev2, Configuration: Debug Win32 ------

1> Extracting revision

1> '"C:\\Mangos\\src\\bindings\\ScriptDev2\\..\\..\\..\\win\\VC100\\genrevision__Win32_Debug\\genrevision.exe"' is not recognize as an internal or external

1> command, executable programm or command file.

1>C:\\Program Files\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 9009.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The first part, with mangosdvc100, seems to have succeded.

A lot of things have changed in C++ 2010 Express, it takes a lot of time to find them at another place (it is the case for example to verify the win32 release, that is know in "properties" and then you choose in a rolling list just after "Configuration").

Any finger to point the way for me ? Thank you very much !

Link to comment
Share on other sites

* mangos was compiled first

* both are in win32 release

* BUT when I double-click on the sln files, nothing happens... I thought it was another "new thing" of my 2010 release, so I opened them with File / Open / File... (in Visual C++ 2010 Express)

I'll try to be sure to be in release mode, not debug.

Thanks for your help, you both ! :)

Link to comment
Share on other sites

I tried to select Release Mode, something had changed (it takes much more time to finish), but the end is the same : failed.

There are a lot of errors like this one :

1>..\\base\\escort_ai.cpp(344): error C2039: 'HasSplineFlag' : is not a member of 'Creature'

1> c:\\mangos\\src\\game\\Creature.h(452) : see declaration of 'Creature'

or this one :

1>..\\ScriptMgr.cpp(103): error C2065: 'barGoLink' : undeclared identifier

1>..\\ScriptMgr.cpp(103): error C2146: syntax error : missing ';' before identifier 'bar'

1>..\\ScriptMgr.cpp(103): error C3861: 'bar': identifier not found

1>..\\ScriptMgr.cpp(104): error C2065: 'bar' : undeclared identifier

1>..\\ScriptMgr.cpp(104): error C2228: left of '.step' must have class/struct/union

1> type is ''unknown-type''

I'm trying to find a 2008 version, it's too hard to find the right ways in the new one, and I can't understand where my errors come from.

Link to comment
Share on other sites

1>..\\ScriptMgr.cpp(103): error C2065: 'barGoLink' : undeclared identifier

1>..\\ScriptMgr.cpp(103): error C2146: syntax error : missing ';' before identifier 'bar'

1>..\\ScriptMgr.cpp(103): error C3861: 'bar': identifier not found

1>..\\ScriptMgr.cpp(104): error C2065: 'bar' : undeclared identifier

1>..\\ScriptMgr.cpp(104): error C2228: left of '.step' must have class/struct/union

1> type is ''unknown-type''

hmm, these are very very old compile errors, do you still use SVN to get SD2?

If so, probably I missed a guide when updating them.

SD2 installation instructions can be seen on SD2 forums; the git address is git://github.com/scriptdev2/scriptdev2.git

Link to comment
Share on other sites

Much more efficient since I found the 2008 release of Visual C++ !

But there are errors when compiling.

***** Lignes de commande *************

Création du fichier temporaire "c:\\Mangos\\win\\VC90\\mangosd__Win32_Release\\RSP0000272660216.rsp" avec pour contenu

[ /Ob1 /I "..\\..\\dep\\include\\gsoap" /I "..\\..\\dep\\include" /I "..\\..\\src\\framework" /I "..\\..\\src\\shared" /I "..\\..\\src\\game" /I "..\\..\\src\\mangosd" /I "..\\..\\dep\\ACE_wrappers" /D "VERSION="0.17.0-DEV"" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "ENABLE_CLI" /D "_SECURE_SCL=0" /D "_MBCS" /GF /FD /EHsc /MD /Gy /arch:SSE /Fp".\\mangosd__Win32_Release\\mangosd.pch" /Fo".\\mangosd__Win32_Release\\\\" /Fd".\\mangosd__Win32_Release\\\\" /W3 /c /Zi /Gd /MP

..\\..\\src\\mangosd\\WorldRunnable.cpp

..\\..\\src\\shared\\WheatyExceptionReport.cpp

..\\..\\dep\\src\\gsoap\\stdsoap2.cpp

..\\..\\src\\mangosd\\soapServer.cpp

..\\..\\src\\mangosd\\soapC.cpp

..\\..\\src\\mangosd\\RASocket.cpp

..\\..\\src\\mangosd\\Master.cpp

..\\..\\src\\mangosd\\MaNGOSsoap.cpp

..\\..\\src\\mangosd\\Main.cpp

..\\..\\src\\mangosd\\CliRunnable.cpp

]

Création de la ligne de commande "cl.exe @c:\\Mangos\\win\\VC90\\mangosd__Win32_Release\\RSP0000272660216.rsp /nologo /errorReport:prompt"

Création de la ligne de commande "rc.exe /d "NDEBUG" /l 0x409 /fo".\\mangosd__Win32_Release/mangosd.res" ..\\..\\src\\mangosd\\mangosd.rc"

Création du fichier temporaire "c:\\Mangos\\win\\VC90\\mangosd__Win32_Release\\RSP0000282660216.rsp" avec pour contenu

[

/OUT:"..\\..\\bin\\Win32_Release\\mangosd.exe" /INCREMENTAL:NO /LIBPATH:"..\\..\\dep\\lib\\Win32_Release" /LIBPATH:".\\framework__Win32_Release" /MANIFEST /MANIFESTFILE:".\\mangosd__Win32_Release\\mangosd.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"..\\..\\bin\\Win32_Release\\mangosd.pdb" /SUBSYSTEM:CONSOLE /STACK:4194304 /LARGEADDRESSAWARE /DYNAMICBASE:NO /IMPLIB:".\\mangosd__Win32_Release\\mangosd.lib" /MACHINE:I386 libmySQL.lib libeay32.lib ws2_32.lib winmm.lib odbc32.lib odbccp32.lib advapi32.lib dbghelp.lib framework.lib msvcrt.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".\\game__win32_release\\game.lib" ".\\g3dlite__win32_release\\g3dlite.lib" ".\\shared__win32_release\\shared.lib" "..\\..\\dep\\lib\\win32_release\\ace.lib" ".\\zlib__win32_release\\zlib.lib" "..\\..\\dep\\lib\\win32_release\\tbbmalloc.lib"

".\\mangosd__Win32_Release\\CliRunnable.obj"

".\\mangosd__Win32_Release\\Main.obj"

".\\mangosd__Win32_Release\\mangosd.res"

".\\mangosd__Win32_Release\\MaNGOSsoap.obj"

".\\mangosd__Win32_Release\\Master.obj"

".\\mangosd__Win32_Release\\RASocket.obj"

".\\mangosd__Win32_Release\\soapC.obj"

".\\mangosd__Win32_Release\\soapServer.obj"

".\\mangosd__Win32_Release\\stdsoap2.obj"

".\\mangosd__Win32_Release\\WheatyExceptionReport.obj"

".\\mangosd__Win32_Release\\WorldRunnable.obj"

]

Création de la ligne de commande "link.exe @c:\\Mangos\\win\\VC90\\mangosd__Win32_Release\\RSP0000282660216.rsp /NOLOGO /ERRORREPORT:PROMPT"

***** Fenêtre Sortie ******************************

Compilation en cours...

WorldRunnable.cpp

WheatyExceptionReport.cpp

stdsoap2.cpp

soapServer.cpp

soapC.cpp

RASocket.cpp

Master.cpp

MaNGOSsoap.cpp

Main.cpp

CliRunnable.cpp

Compilation des ressources en cours...

Microsoft ® Windows ® Resource Compiler Version 6.0.5724.0

Copyright © Microsoft Corporation. All rights reserved.

Édition des liens en cours...

LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée '..\\..\\dep\\lib\\win32_release\\tbbmalloc.lib' (means the entry file can't be opened)

**** Résultats ***************************

Le journal de génération a été enregistré à l'emplacement "file://c:\\Mangos\\win\\VC90\\mangosd__Win32_Release\\BuildLog.htm" mangosd - 1 erreur(s), 0 avertissement(s)

As the tutorial said, I tried to clean and restart the compile, but nothing get better. Shall this affect the error I have on Scriptdev2 :

1>LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'mangosd.lib' (means : mangosd.lib can't be opened)

I can't find this mangosd.lib in Mangos directory, where is it supposed to be ?

The file is too big to be quoted here, but I think it is the only error reported.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use