It is currently Wed Sep 08, 2010 8:14 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Compile/Build errors
PostPosted: Sat Jan 30, 2010 7:30 am 
Offline

Joined: Tue Jan 26, 2010 5:49 pm
Posts: 7
I hate to bring my troubleshooting woes to this forum but I feel like this is the best place to get this resolved...

I installed the dx SDK and opened the solution in VS2008 pro and set the dependencies for directx. Clicked clean solution and then build solution and I get about 4000 errors. Here's a tiny chunk of the type of messages that show up:

Quote:
Error 66 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib sandbox
Error 67 fatal error LNK1120: 1 unresolved externals ../bin/sandbox/\sandbox_d.exe sandbox
Error 97 error C2039: 'shared_ptr' : is not a member of 'std::tr1' d:\evidyon - complete\source\shared\binding\bindingptr.h 31 complete-editor
Error 98 error C2143: syntax error : missing ';' before '<' d:\evidyon - complete\source\shared\binding\bindingptr.h 31 complete-editor
Error 99 error C2039: 'shared_ptr' : is not a member of 'std::tr1' d:\evidyon - complete\source\shared\binding\bindingptr.h 31 client
Error 100 error C2143: syntax error : missing ';' before '<' d:\evidyon - complete\source\shared\binding\bindingptr.h 31 client


I've repaired and patched VS2008 in hopes that it would fix the problem however I know little to nothing about the debug/compile environment in visual studio so any help in the right direction would be awesome.


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Sun Jan 31, 2010 2:15 am 
Offline

Joined: Wed Jan 27, 2010 12:50 am
Posts: 96
Karl G. wrote:
If you start getting a bunch of errors about include files not being found or linker errors about missing libraries, the include/library file paths haven’t been set up correctly in Visual Studio. Add the “include” and “lib” directories for DirectX and the platform library to the appropriate sections in this dialog, under “Tools > Options”:


Source Here

I'm not sure if that is what you meant by setting dependencies for directx, but that is the closest thing that I saw to the problem. If that doesn't resolve the issue I'm sure Karl will at least have some insight. (Or I'll figure it out when I go to compile, but that won't be till late tomorrow or monday =/.)

This is definitely the place to go for Troubleshooting. If we get a few issue-resolutions I'll sticky a troubleshooting thread so it can all be found in one place. =D


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Sun Jan 31, 2010 10:43 am 
Offline

Joined: Tue Jan 26, 2010 5:49 pm
Posts: 7
just to make sure this is what i have done:

in:
tools>options>Projects and Solutions>VC++ Directories

changed show directories for to include and then added directxsdk\include directory
changed show directories for to lib and then added directxsdk\lib directory

---

i get alot of syntax errors which is why i think some other setting in my visual studio environment is off... perhaps karl has re-arranged some unmentioned stuff in his compiler??

has anyone else been able to make a successful build yet?

yours noobfully
:mrgreen:


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Mon Feb 01, 2010 12:13 am 
Offline

Joined: Wed Jan 27, 2010 12:50 am
Posts: 96
Installing Visual Studios (C++) 2008 Express with SQL Server 2008 Express (optional content) now.

Hope to have a resolution tonight.


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Mon Feb 01, 2010 7:48 pm 
Offline
Site Admin

Joined: Fri Jan 08, 2010 12:21 pm
Posts: 73
Ok, two things:

1- You can ignore the sandbox build errors. If it bothers you, just right-click on the project and "Unload" it. That project's just for testing stuff out.

2- The std::tr1 errors are due to an outdated CRT (c runtime) and/or STL (standard template library); the tr1 namespace has a particular extension I used a lot: shared_ptr. Microsoft should have issued an updated version; I have no idea why it's not packaged with express.

Karl


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Mon Feb 01, 2010 9:08 pm 
Offline
Site Admin

Joined: Fri Jan 08, 2010 12:21 pm
Posts: 73
Check this out!

http://unseenstudios.com/making-evidyon/?p=226


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Tue Feb 02, 2010 3:01 am 
Offline

Joined: Tue Jan 26, 2010 5:49 pm
Posts: 7
Thanks Karl I will see if reinstalling SP1 for VS works. I am using studio pro not express by the way.


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Wed Feb 03, 2010 6:30 pm 
Offline

Joined: Wed Jan 27, 2010 12:50 am
Posts: 96
My version of VS08 came with the proper include directories.
My OS is Vista.

My first compilation of Evidyon resulted in one error.

Quote:
.\complete-editor.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.


229 Warnings

Code:
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(467) : warning C4018: '<' : signed/unsigned mismatch
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(489) : warning C4018: '<' : signed/unsigned mismatch
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(545) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(545) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(559) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(576) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(577) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(578) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(579) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(598) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(599) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(600) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(601) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(670) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(670) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\scenery\sceneryeditingdialog.cpp(677) : warning C4244: 'argument' : conversion from 'double' to 'FLOAT', possible loss of data
d:\evidyon source\source\complete-editor\world\mapeditingdialog.cpp(400) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\world\mapeditingdialog.cpp(400) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
d:\evidyon source\source\complete-editor\world\mapeditingdialog.cpp(546) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
d:\evidyon source\source\complete-editor\world\mapeditingdialog.cpp(546) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
d:\evidyon source\source\complete-editor\world\mapeditingdialog.cpp(570) : warning C4018: '<' : signed/unsigned mismatch
d:\evidyon source\source\complete-editor\world\mapmaskcolorselectordialog.cpp(141) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
d:\evidyon source\source\complete-editor\world\mapmaskcolorselectordialog.cpp(142) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
d:\evidyon source\source\complete-editor\world\mapmaskcolorselectordialog.cpp(187) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
d:\evidyon source\source\complete-editor\world\mapmaskcolorselectordialog.cpp(188) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data


Some of them, will post full Build Log on Request.

I ran server for reference. The error I recieved was
Code:
Debug Error!

Program d:\Evidyon Source\Source\Bin\Server_d.exe

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

(Press Retry to debug the application)


I press retry and VS08 informs me that server_d has triggered a break point and takes me to the following lines of code in xutility. (Line 158)

Code:
__CLR_OR_THIS_CALL ~_Iterator_base()
      {   // destroy the iterator
      _Lockit _Lock(_LOCK_DEBUG);
      _Orphan_me();
      }


Sorry for possibly being too thorough.


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Thu Feb 04, 2010 12:36 pm 
Offline
Site Admin

Joined: Fri Jan 08, 2010 12:21 pm
Posts: 73
There will be a lot of warnings; I (inadvisedly) ignored them for the sake of getting things done.

As far as afxres.h goes, just go into the ".rc" file and remove the line that #include "afxres.h". I don't think it's needed. However, for me it is located:

C:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include


If you're being taken to xutility, that means an STL container is being corrupted somehow. Do a full rebuild of the entire project, then try starting up the server in debug mode by "stepping in" to the first line of its execution. Step into each loading/initialization function to make sure everything is ok at each step.


Top
 Profile Send private message  
 
 Post subject: Re: Compile/Build errors
PostPosted: Thu Feb 04, 2010 9:31 pm 
Offline

Joined: Tue Jan 26, 2010 5:49 pm
Posts: 7
figured out my problem:
i had to point the lib path directly to the x86 folder (located inside directx\lib)... works like a charm now.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group