Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportC: two tests with gtk #4128

Open
dlangBugzillaToGithub opened this issue Nov 14, 2022 · 2 comments
Open

ImportC: two tests with gtk #4128

dlangBugzillaToGithub opened this issue Nov 14, 2022 · 2 comments

Comments

@dlangBugzillaToGithub
Copy link

Don Allen reported this on 2022-11-14T16:29:01Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=23485

Description

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.

!!!There are attachements in the bugzilla issue that have not been copied over!!!

@dlangBugzillaToGithub
Copy link
Author

donaldcallen1942 commented on 2022-11-14T16:33:23Z

Created attachment 1860
First test: vanilla include (see gtk.c)

@dlangBugzillaToGithub
Copy link
Author

donaldcallen1942 commented on 2022-11-14T16:33:50Z

Created attachment 1861
Second test: include of gtk.h with attempts to work around problems encountered in first test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant