comp.lang.ada
 help / color / mirror / Atom feed
* Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries.
@ 1999-02-03  0:00 Mark
  1999-02-03  0:00 ` Stephen Leake
  0 siblings, 1 reply; 4+ messages in thread
From: Mark @ 1999-02-03  0:00 UTC (permalink / raw)


I'm trying to link to a library created using visual c++.

I get the following undefined references :-
  _imp__CreateEventA@16

libkernal32.a includes reference to :-
 ___imp_CreateEventA@16

Is it possible to resolve the naming difference?

I do not have access to the c++ source code.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries.
  1999-02-03  0:00 Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries Mark
@ 1999-02-03  0:00 ` Stephen Leake
  1999-02-04  0:00   ` Peter Hend�n
  1999-02-04  0:00   ` rajagopalasrinivasan
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Leake @ 1999-02-03  0:00 UTC (permalink / raw)


"Mark" <mark@lourow.demon.co.uk> writes:

> I'm trying to link to a library created using visual c++.
> 
> I get the following undefined references :-
>   _imp__CreateEventA@16
> 
> libkernal32.a includes reference to :-
>  ___imp_CreateEventA@16
> 
> Is it possible to resolve the naming difference?
> 
> I do not have access to the c++ source code.

Since we don't have access to _your_ source code, we can't help either :)

Please post your subprogram declaration and Import pragma, and state
what compiler you are using, and which version of Windows, and what
Win32 binding. Then we might be able to help.

-- Stephe




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries.
  1999-02-03  0:00 ` Stephen Leake
  1999-02-04  0:00   ` Peter Hend�n
@ 1999-02-04  0:00   ` rajagopalasrinivasan
  1 sibling, 0 replies; 4+ messages in thread
From: rajagopalasrinivasan @ 1999-02-04  0:00 UTC (permalink / raw)


I did not realize that gnat 3.11p supports linking with Visual C++ generated
objects directly.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries.
  1999-02-03  0:00 ` Stephen Leake
@ 1999-02-04  0:00   ` Peter Hend�n
  1999-02-04  0:00   ` rajagopalasrinivasan
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Hend�n @ 1999-02-04  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]

I get unresolved references in the demo2 sample shipped with
gnat 3.11p for NT. These references are to

__imp__iob
SetUnhandledExceptionFilter@4
ExitProcess@4

Oh, and the original poster did state that he was using Gnat 3.11p
in the Subject line.

The Win32 binding I am using is the one included with the NT port
of gnat.

Can anyone help?

Regards,
Peter

--
Peter Hend�n           http://www.algonet.se/~phenden
ICQ: 14672398
Teknisk Dokumentation AB          http://www.tdab.com
Stephen Leake wrote in message ...
>"Mark" <mark@lourow.demon.co.uk> writes:
>
>> I'm trying to link to a library created using visual c++.
>>
>> I get the following undefined references :-
>>   _imp__CreateEventA@16
>>
>> libkernal32.a includes reference to :-
>>  ___imp_CreateEventA@16
>>
>> Is it possible to resolve the naming difference?
>>
>> I do not have access to the c++ source code.
>
>Since we don't have access to _your_ source code, we can't help either :)
>
>Please post your subprogram declaration and Import pragma, and state
>what compiler you are using, and which version of Windows, and what
>Win32 binding. Then we might be able to help.
>
>-- Stephe






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-02-04  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-03  0:00 Unresolved references when linking Gnat 3.11p Ada with Visual C++ Libraries Mark
1999-02-03  0:00 ` Stephen Leake
1999-02-04  0:00   ` Peter Hend�n
1999-02-04  0:00   ` rajagopalasrinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox