Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-07-09 11:28:32
Point:500 Replies:9 POST_ID:828567USER_ID:11059
Topic:
C++ Programming Language;;
I have old C program for running at command line with CL.exe
and it report out link errro: LNK 2019 unresloved exteranl symbol _imp_DeleteService
and it report out link errro: LNK 2019 unresloved exteranl symbol _imp_DeleteService
Attachment:UserPort.c
Expert: jkr replied at 2024-07-09 13:05:37
Yes, you need to use '/link' since this is not a "default library".
Author: duncanb7 replied at 2024-07-09 12:34:53
SO you mean if some lib is at %Lib% directory , I need to use /link option
If the library is at C:program filesMicrosoft Visual Studio 10.0VCLib, I don't
need to use /link since calling VC, RIght ?
If the library is at C:program filesMicrosoft Visual Studio 10.0VCLib, I don't
need to use /link since calling VC, RIght ?
Author: duncanb7 replied at 2024-07-09 12:34:18
Now it passed, thanks
SO you mean if some lib is at %Lib% directory , I need to user /link option
If the library is C:program filesMicrosoft Visual Studio 10.0VCLib, I don't
need to use /link since calling VC, RIght ?
SO you mean if some lib is at %Lib% directory , I need to user /link option
If the library is C:program filesMicrosoft Visual Studio 10.0VCLib, I don't
need to use /link since calling VC, RIght ?
Expert: jkr replied at 2024-07-09 12:21:53
No, if it's already there, it should be fine. What is the exact error message yo uare getting?
Author: duncanb7 replied at 2024-07-09 12:06:36
finally found out the Advapi32.lib at C:program filesMicrosoft SDKswindowsV7.0ALib
echo %Lib%, it also echo out the same path C:program filesMicrosoft SDKswindowsV7.0ALib
But cl complier cound not find it out, WHy?
DO I need to copy all lib at SDK to C;program filesMicrosoft Visual Studio 10.0VCLib ?
Please advise
Duncan
echo %Lib%, it also echo out the same path C:program filesMicrosoft SDKswindowsV7.0ALib
But cl complier cound not find it out, WHy?
DO I need to copy all lib at SDK to C;program filesMicrosoft Visual Studio 10.0VCLib ?
Please advise
Duncan
Accepted Solution
Expert: jkr replied at 2024-07-09 11:54:48
500 points GOOD
It should be
cl userport.c /link advapi32.lib
Make sure that your environment variables are set correctly ba e.g. using
echo %LIB%
cl userport.c /link advapi32.lib
Make sure that your environment variables are set correctly ba e.g. using
echo %LIB%
Author: duncanb7 replied at 2024-07-09 11:46:11
You mean
CL /link Advapi32.lib' userport.c ?
But no such Advapi32.lib
Please advise exact command
CL /link Advapi32.lib' userport.c ?
But no such Advapi32.lib
Please advise exact command
Author: duncanb7 replied at 2024-07-09 11:41:02
Actually, I haven't finished my editing.
THe C program is also need one library file which can PortAccess.sys that
I already put it at c:windowssystem32drivers. But it is still not working
to let function of DeleteService() passes
How C/C++ complier to know where to locate the library for the C program if need
I will try you suggestion
DUncan
THe C program is also need one library file which can PortAccess.sys that
I already put it at c:windowssystem32drivers. But it is still not working
to let function of DeleteService() passes
How C/C++ complier to know where to locate the library for the C program if need
I will try you suggestion
DUncan
Expert: jkr replied at 2024-07-09 11:30:51
You most likely forgot to link with Advapi32.lib - add '/link Advapi32.lib' to your command line.