-
Notifications
You must be signed in to change notification settings - Fork 44
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
Unable to run the go.file #24
Comments
The error message shows that SAP NWRFC SDK include files are not found. Is SAP NWRFC SDK installed on your system and in which folder? The GO should be informed about the location of include files, like described in README: https://github.com/SAP/gorfc#install-gorfc Alternatively you can clone the repository and adapt #cgo windows options in gorfc.go #cgo windows CFLAGS: -IC:/Tools/nwrfcsdk/include/
#cgo windows LDFLAGS: -LC:/Tools/nwrfcsdk/lib/ -lsapnwrfc -llibsapucum |
I am trying to run the commands using git bash. Facing the below error while running the command "go get github.com/sap/gorfc" Error $ go get github.com/sap/gorfc In file included from D:\Software\nwrfcsdk\nwrfcsdk/include/sapnwrfc.h:7, |
The error log shows that SAP NWRFC SDK libraries are not found. In which folder is SAP NWRFC SDK installed on your system and did you set the env variables following the installation steps ? The |
Env variables are set as below: |
And CGO_LDFLAGS ?
|
Should i set the GCO_LDFLAGS in env variable? I actually ran the below commands on git bash from readme document: and when i ran the command "go get github.com/sap/gorfc" facing the error as shown above. |
I have also tired the alternate method suggested. #cgo windows CFLAGS: -ID:/Software/nwrfcsdk/nwrfcsdk/include PFB the error: In file included from D:/Software/nwrfcsdk/nwrfcsdk/include/sapnwrfc.h:7, |
I have the same problem, but env setting complete. `C:\Users\John Li\go\pkg\mod\github.com\sap\[email protected]\gorfc>go build github.com/sap/gorfc/gorfcIn file included from D:\nwrfcsdk\include/sapnwrfc.h:7, In file included from D:\nwrfcsdk\include/sapnwrfc.h:7, |
OS VERSION: windows 10 exactly same errors like above |
The Windows is not supported until #21 fixed |
Closing due to the sunset of the project. |
I am facing the below issue when i try to run the go.file on Windows
PFB the error:
D:\Go_Folder\src\sap_con>go run sap_connection.go #github.com/sap/gorfc/gorfc ....\pkg\mod\github.com\sap\[email protected]\gorfc\gorfc.go:52:10: fatal error: sapnwrfc.h:
No such file or directory #include <sapnwrfc.h> compilation terminated.
Please suggest.
The text was updated successfully, but these errors were encountered: