Welcome, Guest.
Username: Password: Remember me

TOPIC: preprocessor error in FFXIV

preprocessor error in FFXIV 9 months 3 weeks ago #1

I was having issues with my installation of FFXIV, so I decided to do a clean install. Afterwards, I attempted to reinstall Reshade, which I did over a year ago and did not remember the process of getting it to work very well. Now, when I run the game, I get a couple of preprocessor errors referring to util.h in the SweetFX folder saying that SFX_Shared was redefined.

What is the issue here, and how do I solve it? Thanks
The administrator has disabled public write access.

preprocessor error in FFXIV 9 months 2 weeks ago #2

In my version ReShade 2.0.3 with Framework 1.1.0f1 I had the same error using with VTMB.

Open Util.h from Game Folder/ReShade/SweetFX/ in a text editor and edit every line (there are 19 of them I think) which says:
  #define SFX_SHARED 1
to
  #if !defined(SFX_SHARED)
    #define SFX_SHARED 1
  #endif

I don't think spacing matters with preprocessor commands but I kept the same format. This will probably be solved soon as it's a major and silly error. They are probably not using any sweetfx shaders so they didn't notice the error.
The administrator has disabled public write access.

preprocessor error in FFXIV 9 months 2 weeks ago #3

Just got the same error in McFX/SSAO.h and applied a similar fix.
It's not necessarily an error. It just depends on the version of c syntax that's being followed. The newer ones disallow redefinitions through #define (C99 6.10.3p2).

A different fix would be to #undef before #define.
The administrator has disabled public write access.