Re: [MOD] STR #3531: abi-version.h not created/changed by ./configure

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [MOD] STR #3531: abi-version.h not created/changed by ./configure Albrecht Schlosser Nov 12, 2019 top right image
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Pending]

Link: https://www.fltk.org/str.php?L3531
Version: 1.3.5
Fix Version: None


Short version: thanks for the report, but I don't think that this is
correct.

First of all, FLTK_ABI_VERSION is deprecated but still defined in
FL/Enumerations.H. It should always be equal to FL_ABI_VERSION which you
should use since 1.3.4/1.3.5 and later.

The posted abi-version.h file is correct and intentional if you don't
specify an ABI version with configure. Again, there is code in
FL/Enumerations.H that defines FL_API_VERSION, FL_ABI_VERSION, and
FLTK_ABI_VERSION for backwards compatibility.

Note: do not include FL/abi-version.h directly in your code. You must
include FL/Fl.H which will include FL/Enumerations.H and FL/abi-version.h
indirectly. This is documented here:
https://www.fltk.org/doc-1.3/basics.html#basics_writing

Please see also README.abi-version.txt and attached small demo program
abi-version.cxx.


Link: https://www.fltk.org/str.php?L3531
Version: 1.3.5
Fix Version: None
// compile with `fltk-config --compile abi-version.cxx'

#include <stdio.h>
#include <FL/Fl.H>

int main(int argc, char **argv) {
  printf("FL_API_VERSION   = %d\n", FL_API_VERSION);
  printf("FL_ABI_VERSION   = %d\n", FL_ABI_VERSION);
  printf("FLTK_ABI_VERSION = %d\n", FLTK_ABI_VERSION);
  return 0;
}

Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.