Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Some fixes in InVector.hpp and Vcont.cpp
Some fixes in InVector.hpp and Vcont.cpp [message #43715] Thu, 25 September 2014 13:56 Go to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
Hi, all

I try to compile U++ to the dynamic library (by using the .def file to generate the .dll with the .lib), and it can work on windows7 except some modification should be made.


In the InVector.hpp

change
extern thread__ int64 invector_cache_serial_;
extern thread__ int   invector_cache_blki_;
extern thread__ int   invector_cache_offset_;
extern thread__ int   invector_cache_end_;

to
#ifndef flagSO
extern thread__ int64 invector_cache_serial_;
extern thread__ int   invector_cache_blki_;
extern thread__ int   invector_cache_offset_;
extern thread__ int   invector_cache_end_;
#else
static thread__ int64 invector_cache_serial_;
static thread__ int   invector_cache_blki_;
static thread__ int   invector_cache_offset_;
static thread__ int   invector_cache_end_;
#endif



In the Vcont.cpp

change
thread__ int64 invector_cache_serial_;
thread__ int   invector_cache_blki_;
thread__ int   invector_cache_offset_;
thread__ int   invector_cache_end_;


to
#ifndef flagSO
thread__ int64 invector_cache_serial_;
thread__ int   invector_cache_blki_;
thread__ int   invector_cache_offset_;
thread__ int   invector_cache_end_;
#endif


Hope that helps, and the modified code was uploaded as attachment.
  • Attachment: InVector.hpp
    (Size: 16.34KB, Downloaded 285 times)
  • Attachment: Vcont.cpp
    (Size: 1.85KB, Downloaded 291 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved] Bug in CParser
Next Topic: The method to directly work with GUI?
Goto Forum:
  


Current Time: Wed Apr 24 01:57:59 CEST 2024

Total time taken to generate the page: 3.86144 seconds