Giter VIP home page Giter VIP logo

Comments (4)

Helios-vmg avatar Helios-vmg commented on June 28, 2024

As a quick fix, would it work to #define deprecated(x) deprecated? That declspec has no bearing on the calling convention or name mangling anyway.

from deviare2.

bo3b avatar bo3b commented on June 28, 2024

As a quick fix, would it work to #define deprecated(x) deprecated? That declspec has no bearing on the calling convention or name mangling anyway.

I'll give that a try and report back.

BTW, VS2017 also can not rebuild the DB. The problems are different, and include a number of broken header files in the SDK 10.0. Probably worth waiting on that until 2017 is more complete.

from deviare2.

bo3b avatar bo3b commented on June 28, 2024

As a quick fix, would it work to #define deprecated(x) deprecated? That declspec has no bearing on the calling convention or name mangling anyway.

Adding that #define to the start of the preprocessed32W.h file does work to remove all of the deprecated errors.

This is using \Windows Kits\8.1 for the header files, instead of the \Windows Kits\10.0


There are still a handful of errors as:

Loading configuration file... OK
----------------------------------------
Compiling header file (c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h)...
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:22959: error: expected initializer before 'void'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:218955: error: two or more data types in declaration of 'strtold'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:218956: error: two or more data types in declaration of '_strtold_l'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:219107: error: two or more data types in declaration of 'wcstold'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:219108: error: two or more data types in declaration of '_wcstold_l'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:2009356: error: declaration of C function 'HRESULT GetDeviceID(UINT8*, UINT32, unsigned int*, INT32*)' conflicts with
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:458334: error: previous declaration 'HRESULT GetDeviceID(const GUID*, GUID*)' here
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:2062672: error: declaration of 'TextEditChangeType UiaTextEditTextChangedEventArgs::TextEditChangeType'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:2043235: error: changes meaning of 'TextEditChangeType' from 'enum TextEditChangeType'
Error: Compilation failed

Mostly I'm not worried about missing a few of those calls in the DB, so commenting them out is an OK temporary solution.

from deviare2.

bo3b avatar bo3b commented on June 28, 2024

With a bit of manual trickery, setting the Include path for cl, I forced it to use the \Windows Kits\8.0

This is older of course, and not necessarily what people would want. We have to use the 8.0 headers for our 3Dmigoto tool.

Running the build32.bat full, and build64.bat full, and then build_db32.bat, that still fails with a handful of the same errors:

Loading configuration file... OK
----------------------------------------
Compiling header file (c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h)...
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:215809: error: two or more data types in declaration of 'strtold'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:215810: error: two or more data types in declaration of '_strtold_l'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:215961: error: two or more data types in declaration of 'wcstold'
c:\Users\bo3b\Documents\Code\Deviare2\Database\HeaderBuilder\Full\output\preprocessed32W.h:215962: error: two or more data types in declaration of '_wcstold_l'
Error: Compilation failed

These are actually easy enough to fix, the processing created a function like:

 int double __cdecl strtold(  const char * _Str,     char ** _EndPtr);

Which doesn't make sense of course. If I change that in the preprocessed32W.h file to long double then it works.

Don't know if this is helpful, but thought the extra details might help someone.

from deviare2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.