NO

Author Topic: fSDK© - Frankie's SDK for PellesC  (Read 57742 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: fSDK© - Frankie's SDK for PellesC
« Reply #45 on: November 08, 2018, 05:24:55 PM »
Code: [Select]
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <xnamath.h>
Code: [Select]
C:\code\fSDK\Include\xnamath.h(147): warning #2086: Use of '_Alignas' in typedef; ignored.
C:\code\fSDK\Include\xnamath.h(234): warning #2086: Use of '_Alignas' in typedef; ignored.
C:\code\fSDK\Include\xnamath.h(1698): error #2140: Type error in argument 2 to '_mm_and_si128'; expected '__m128i' but found 'XMVECTORU32'.
C:\code\fSDK\Include\xnamath.h(1699): error #2140: Type error in argument 2 to '_mm_cmpeq_epi32'; expected '__m128i' but found 'XMVECTORU32'.
C:\code\fSDK\Include\xnamath.h(1700): error #2140: Type error in argument 2 to '_mm_and_si128'; expected '__m128i' but found 'XMVECTORF32'.
C:\code\fSDK\Include\xnamath.h(1701): error #2048: Undeclared identifier 'reinterpret_cast' (did you mean: ?).
C:\code\fSDK\Include\xnamath.h(1701): error #2039: Invalid expression.
C:\code\fSDK\Include\xnamath.h(1701): error #2060: Invalid return type; expected 'union __m128' but found 'int'.
C:\code\fSDK\Include\xnamath.h(1701): error #2001: Syntax error: expected ';' but found '__m128'.
C:\code\fSDK\Include\xnamath.h(1701): error #2092: Missing identifier.
May the source be with you

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: fSDK© - Frankie's SDK for PellesC
« Reply #46 on: November 08, 2018, 06:11:42 PM »
Ok.
I'll add to things to be fixed.
Thanks for the feedback.
 ;)
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Abraham

  • Guest
Re: fSDK© - Frankie's SDK for PellesC
« Reply #47 on: December 08, 2018, 11:23:39 PM »
Here's my version with a few mistakes still around.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: fSDK© - Frankie's SDK for PellesC
« Reply #48 on: December 09, 2018, 12:28:21 PM »
Thanks Abrahm!   :)
You're one of the few, with Timo, to give a tangible help to the development!  ;)
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: fSDK© - Frankie's SDK for PellesC
« Reply #49 on: January 06, 2019, 12:32:10 AM »
Here we are again with a new version.
The SDK has been modified for the PellesC V9.00, and includes all bugs pointed out by Timo, Abrahm and you all.
In this release has been included the backup feature. It creates a backup for the headers and the library folders.
The backup folders are named as the respective original folders name followed by the date and the time of the backup.
The user can eventually rename those directories and use them as alternatives for the compile.
This is the detail
- 05/Jan/2019 --  -- V.0.2.0.0 (05.Jan.2019)
            - Update dependencies for new PellesC V.9.00
              - Fixed intrinsics
              - Fixed conditional compilation for V.8.00 compatibility
              - Minor general fixes
            - Fixed header xnamath.h
            - Added missing IID's in mmdeviceapi.h and Audioclient.h
            - Added new DXGI's
            - Fixed reference to bthprops.cpl in bthprops.lib
            - Added Backup feature to backup headers and libraries folders
            - Minor fixes and general cleaning
I hope to haven't miss anything. Please test it and report problems.

To upgrade compiler with fSDK kit download installer from github and run it
fSDK can be browsed on GitHub
« Last Edit: January 06, 2019, 01:35:59 AM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Abraham

  • Guest
Re: fSDK© - Frankie's SDK for PellesC
« Reply #50 on: January 14, 2019, 07:19:24 PM »
Your installer LICENSE still shows version 0.1.1.2 11-Feb-2018 instead of 0.2.0.0 5-Jan-2019.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: fSDK© - Frankie's SDK for PellesC
« Reply #51 on: January 15, 2019, 01:06:05 PM »
Thanks for the report Abraham.
I'll fix it.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Abraham

  • Guest
Re: fSDK© - Frankie's SDK for PellesC
« Reply #52 on: June 18, 2019, 01:27:19 AM »
#include <DxErr.h>
#pragma comment(lib, "DxErr")

POLINK: error: Unresolved external symbol '_vsnprintf' - referenced from 'DxErr.lib(dxerra.obj)'.
POLINK: error: Unresolved external symbol '__security_cookie' - referenced from 'DxErr.lib(dxerra.obj)'.
POLINK: error: Unresolved external symbol '__security_check_cookie' - referenced from 'DxErr.lib(dxerra.obj)'.
POLINK: error: Unresolved external symbol '__GSHandlerCheck' - referenced from 'DxErr.lib(dxerra.obj)'.
POLINK: fatal error: 4 unresolved external(s).

Not sure how to get pass this issue.

For Visual Studio, it would be: legacy_stdio_definitions.lib, but
#pragma comment(lib, "legacy_stdio_definitions")
POLINK: fatal error: File not found: 'legacy_stdio_definitions.lib'.


Recompile DxErr.c and DxErr.h from the attachments. They are adjusted to also work with ANSI, not only UNICODE.
It would conflict without removal of your dxerr.h.

DXGetErrorDescriptionW and DXGetErrorDescriptionA would have different amount of parameters when compile from source.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: fSDK© - Frankie's SDK for PellesC
« Reply #53 on: June 18, 2019, 01:45:56 PM »
Hello Abraham.
I'm not sure to understand what you mean.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Abraham

  • Guest
Re: fSDK© - Frankie's SDK for PellesC
« Reply #54 on: June 18, 2019, 05:28:48 PM »
DxErr.lib in "DirectX SDK June 2010" is not linking because of external dependencies.

Clarify: This issue occurs with Windows 10, and maybe those that have Windows SDK.

I've made changes.
Use this one, and compile manually DxErr.lib for your settings:
x86 or x64.
Static Single Thread, Static Multi-Thread, or Dynamic Multi-Thread.
« Last Edit: June 18, 2019, 05:44:10 PM by Abraham »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: fSDK© - Frankie's SDK for PellesC
« Reply #55 on: June 18, 2019, 06:28:39 PM »
PellesC don't support COMDAT  :(

So one source and an UNICODE support source file DxErrW.c for library
Code: [Select]
// DxErrW.c
#define UNICODE
#include "DxErr.c"

EDIT: DXUT
« Last Edit: June 20, 2019, 10:40:08 AM by TimoVJL »
May the source be with you

Abraham

  • Guest
Re: fSDK© - Frankie's SDK for PellesC
« Reply #56 on: July 01, 2019, 06:00:26 PM »
rpcdce.h

#ifndef DECLSPEC_NORETURN
#if (__POCC__ >= 800) & (__POCC_STDC_VERSION__ >= 201112L)
#define DECLSPEC_NORETURN   _Noreturn
#el
if (__POCC__ >= 500)
#define DECLSPEC_NORETURN   __declspec(noreturn)
#else
#define DECLSPEC_NORETURN
#endif
#endif

winnt.h

#ifndef DECLSPEC_NORETURN
#if (__POCC__ >= 800) & (__POCC_STDC_VERSION__ >= 201112L)
#define DECLSPEC_NORETURN   _Noreturn
#el
if (__POCC__ >= 260)
#define DECLSPEC_NORETURN   __declspec(noreturn)
#else
#define DECLSPEC_NORETURN
#endif
#endif

Not sure if anyone else place <stdnoreturn.h> before <windows.h>, but the rules require that the order of including standard headers should not break things.