15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


unresolved external's in DLL

Aiden Bohannon -- 9312986@mailgate2.ul.ie
Wednesday, October 23, 1996

Environment: Windows 95, VC++ 2.0

I'm trying to use the _inp() & _outp() functions from conio.h. within a dll
file. When I link, I get 

LPT_Tdlg.obj : error LNK2001: unresolved external symbol "__inp"

It works fine when I tried it in a mutiple doc app.
I tried adding the /NOENTRY to the .mak manually, but it doesn't seem to
pick up on this either.

Any help GREATLY appreciated,
Aidan.






Brad Wilson/Crucial Software -- crucial@pobox.com
Thursday, October 24, 1996

[Mini-digest: 4 responses]

> I'm trying to use the _inp() & _outp() functions from conio.h. within a
dll
> file. When I link, I get 

I don't know why they're in the header file, but inp() and outp() are
definitely NOT supported in Win32.  I might be mistaken, but I think that
header shouldn't be in Win32 at all.  It is a holdover from DOS-land.

--
Brad Wilson             | crucial@pobox.com         http://www.thebrads.com
Objectivist Philosopher | "Take the time, reevaluate,
Software Engineer       |  It's time to pick up the pieces
Web Page Designer       |  Go back to square one
System Administrator    |  I think it's time for a change"  - Dream Theater

-----From: Ian Pepper 

Aiden,

Make sure you link with one (or more) of the following:
LIBC.LIB	Single thread static library, retail version
LIBCMT.LIB	Multithread static library, retail version
MSVCRT.LIB	Import library for MSVCRTx0.DLL, retail version
MSVCRTx0.DLL	Multithread DLL library, retail version

Ian
ian@flexicom.ie

-----From: David Little 

I didn't think console i/o was available in a DLL.....

-----From: Mike Blaszczak 

At 15:22 10/23/96 +0100, Aiden Bohannon wrote:
>Environment: Windows 95, VC++ 2.0

Please upgrade to a more current version.

>I'm trying to use the _inp() & _outp() functions from conio.h. within a dll
>file. When I link, I get 

>LPT_Tdlg.obj : error LNK2001: unresolved external symbol "__inp"

>It works fine when I tried it in a mutiple doc app.
>I tried adding the /NOENTRY to the .mak manually, but it doesn't seem to
>pick up on this either.

_inp() and _outp() don't make much sense in Win32.  While you will be able
to get the compiler to do what you're telling it, you probably won't be
satisfied with the results.  You might need to write a device driver.

Please see Knowledge Base articles Q112298, Q105287, Q152030, and Q140503.

Please, please, at least _try_ to cruise through the Microsoft Knowledge Base
before asking others for help. You can get to the MSKB at
http://www.microsoft.com/kb, or by doing /GO MSKB on CompuServe. I found
the above three articles by searching for "inp" references in the
product "Visual C++".  It took me less than one minute to do!

.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.




Mike Blaszczak -- mikeblas@nwlink.com
Sunday, October 27, 1996

>> I'm trying to use the _inp() & _outp() functions from conio.h.
>> within a dll file. When I link, I get [...]

>-----From: David Little 
>I didn't think console i/o was available in a DLL.....

The _inp() and _outp() functions aren't Console I/O; they're port-level
I/O functions.  On Intel machines, they translate to IN and OUT opcodes
which peek and poke the hardware I/O bus.

Console I/O is a completely different beast, and _is_ available to
a Win32 DLL.

.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |