[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: incorrect signature errors
From: |
Daniel Boyd |
Subject: |
RE: incorrect signature errors |
Date: |
Wed, 19 May 2021 13:31:33 -0500 |
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
<discuss-gnustep-bounces+danieljboyd=icloud.com@gnu.org> On Behalf Of Daniel
Boyd
Sent: Thursday, May 6, 2021 4:42 PM
To: 'Discuss-gnustep Discuss' <discuss-gnustep@gnu.org>
Subject: incorrect signature errors
When I call a method in one of my ObjC libraries, Im 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.
Im running Objc 2 / clang in Debian under WSL.