Bug 23485 – ImportC: two tests with gtk

Status
NEW
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
x86_64
OS
FreeBSD
Creation time
2022-11-14T16:29:01Z
Last change time
2024-12-15T15:27:40Z
Keywords
ImportC
Assigned to
No Owner
Creator
Don Allen
Moved to GitHub: dlang.org#4128 →

Attachments

IDFilenameSummaryContent-TypeSize
1860gtk_test1.tar.xzFirst test: vanilla include (see gtk.c)application/x-xz252200
1861gtk_test2.tar.xzSecond test: include of gtk.h with attempts to work around problems encountered in first testapplication/x-xz246148

Comments

Comment #0 by donaldcallen1942 — 2022-11-14T16:29:01Z
As requested by Walter, here are tar files of two tests of attempts to import a pre-processed C file that includes gtk.h. The first simply includes the header file. The second adds some #defines to try to work around the problems. This was as far as I got in my own attempt to use ImportC for my own application. These tests were done on a FreeBSD 13.1 system. I've seen similar results on Linux. For your convenience, the 'errors' file is the output of 'make' in each case. The header_files directory contains a copy of the header files that appear in 'errors'. It's worth noting that in the first test, the problems were in signal.h and types.h, not in any of the gtk header files.
Comment #1 by donaldcallen1942 — 2022-11-14T16:33:23Z
Created attachment 1860 First test: vanilla include (see gtk.c)
Comment #2 by donaldcallen1942 — 2022-11-14T16:33:50Z
Created attachment 1861 Second test: include of gtk.h with attempts to work around problems encountered in first test
Comment #3 by robert.schadek — 2024-12-15T15:27:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4128 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB