I have *finally* figured out what was causing this in case anyone else runs
into this issue.

I'm using a class which (among other things) provides a wrapper around
unixodbc. In the unixodbc header file sqltypes.h, you have this lovely line:

#define BOOL int

So my solution was to do this:

#import <sql.h>         //<-- unixODBC include file
#undef BOOL          // <-- this reverts back to the objc/runtime.h typedef

I'm not 100% sure whether this will break things in unixodbc, but all of my
code appears to be working so far ... <fingers crossed>

From: Discuss-gnustep
<[email protected]> On Behalf Of Daniel
Boyd
Sent: Thursday, May 6, 2021 4:42 PM
To: 'Discuss-gnustep Discuss' <[email protected]>
Subject: incorrect signature errors

When I call a method in one of my ObjC libraries, I’m getting a bunch of
‘incorrect signature’ errors. E.g.:

Calling [Pg -executeBind:] with incorrect signature.  Method has C24@0:8@16
(C24@0:8@16), selector has i24@0:8@16

Everything seems to work OK… just get that error printed out all over the
place to the console.

I’m running Objc 2 / clang in Debian under WSL.


Reply via email to