Cant link in gd : Use of undeclared type
adirburke opened this issue · comments
I fixed the issue by changing hte /gd/module.modulemap header line back to /usr/local/include from umbrella header
@idi888 I am getting the exact same issue.
/gd/module.modulemap header line back to /usr/local/include from umbrella header
Can you let me know where / what the "umbrella" header is please, not having much joy!
Thanks.
@aggsyb SwiftGD/Sources/gd/module.modulemap
I fixed the issue in three steps :
-
Add
/usr/local/lib
in Library Search Paths in the Build Settings of SwiftGD and App as indicated by @twostraws in Server Side Swift book -
Change .build/checkouts/SwiftGD/Sources/gd/module.modulemap
module gd {
umbrella header "/usr/local/include/gd.h"
link "gd"
}
- Add
/usr/local/include
RECURSIVE in Header Search Paths in the Build Settings of SwiftGD
@jpimbert Do you know if there is a way that doesn't require performing these steps each time the Xcode project is regenerated?
@siemensikkema, yes I think there is a way but I presently don't know where to find it 😬
Perhaps by adding a Xcode configuration file, documented here : https://help.apple.com/xcode/mac/current/#/itcaec37c2a6 ?
Perhaps by fixing it in SwiftGD configuration ?
Looks like this is fixed #20 @twostraws any chance you could merge?