cmd/cgo: error while running C application which imports methods from the DLL created using c-shared in go #32101
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Created a simple C console application which imports functions exposed in the DLL and the DLL was created using c-shared. The go DLL depends on other DLL which was created using C++. The dependent DLL are placed in the correct path so console application is able to locate them while loading. "The application was unable to to start correctly(0x0000142)" error is seen while launching console application.
Go code for creating DLL which has dependency on above created Check.dll
Note: The same sequence works fine on Mac with dylib.
What did you expect to see?
The C console application should run fine without any exception since the application just calls the method from DLL created from go
What did you see instead?
The application was unable to to start correctly(0x0000142)" error is seen while launching C console application.
The text was updated successfully, but these errors were encountered: