Crystal Space
Welcome, Guest. Please login or register.
July 22, 2014, 08:55:53 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8211 Members
Latest Member: Ola123zajac
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  sorry another noob with silly questions
« previous next »
Pages: [1] Print
Author Topic: sorry another noob with silly questions  (Read 2090 times)
beakcon
Newbie
*
Posts: 10

beakcon@hotmail.com beakcon beakcon
View Profile Email
« on: September 26, 2005, 09:00:01 pm »

okie dokie...going through the tutorial alreay succesfully compiled Cs under new render using visual studio 6..ect. up to making the first simple app the part of the tutorial where we very excitedly add the ability to close via the esc key...woot (tutorials rock BTW) and i get a lovely little compile error when it goes through cs\include\platform.h 'cause it won't find volatile.h...well it's not in the include directory...which i was under the impression that it would only be there for not win 32 plat but csutil/win32/volatile.h is there...so no biggie...at least that's my understanding so far...i assume that the test in platfom.h 
#ifndef __CS_PLATFORM_H__
#define __CS_PLATFORM_H__

// Include volatile.h which contains the volatile configuration macros
#if defined (WIN32_VOLATILE)
#  include <csutil/win32/volatile.h>
#else
#  include <volatile.h>
#endif

#endif // __CS_PLATFORM_H__
 
should be including the latter but it seems to want the volatile.h that isn't ther......so  what am i missing? response would be appretiated...thanks
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #1 on: September 26, 2005, 10:06:21 pm »

If you are building with MSVC, then you need to make sure that WIN32_VOLATILE is #defined in your project file. It is your responsibility to ensure that it is defined there.

If you are using Mingw or Unix, then WIN32_VOLATILE is not defined, and the CS configure script will instead generate a volatile.h on-the-fly.
Logged
beakcon
Newbie
*
Posts: 10

beakcon@hotmail.com beakcon beakcon
View Profile Email
« Reply #2 on: September 26, 2005, 11:54:39 pm »

thank you..i figured that out...just wasn't sure if it needed a define value or not...is there a reference for CS constants floating around somewhere?
Logged
beakcon
Newbie
*
Posts: 10

beakcon@hotmail.com beakcon beakcon
View Profile Email
« Reply #3 on: September 27, 2005, 12:06:31 am »

let me reword that...where and how do i define WIN32_VOLATILE
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #4 on: September 27, 2005, 01:19:52 pm »

If you are using MSVC6, see step 4 of the MSVC6 HOWTO in the CS0.98 manual:

http://www.crystalspace3d.org/docs/online/manual-0.98/cs_126.html

If you are using MSVC7, see step 4 of the MSVC7 HOWTO in the CS0.98 manual:

http://www.crystalspace3d.org/docs/online/manual-0.98/cs_127.html
Logged
beakcon
Newbie
*
Posts: 10

beakcon@hotmail.com beakcon beakcon
View Profile Email
« Reply #5 on: September 28, 2005, 06:07:36 pm »

Yeah...i found it.......thanks so much for helping...I am such an idiot..i even read through that section already...never used an MS compiler before either.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.217 seconds with 15 queries.