最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - Command line error D8003 : missing source filename NMAKE : fatal error U1077 - Stack Overflow

programmeradmin4浏览0评论

I don't understand why I'm getting this error in Visual Studio. I have all the .obj files in the obj folder, but I'm still getting this error. What's the problem, guys? What is the solution?

I also use Windows!

MakeFile:

CC = cl
CFLAGS = /O2 /EHsc /std:c++17 /DWIN32 /DSUBHOOK_STATIC
LDFLAGS = /LD /link ws2_32.lib

FAKEBOTS_OUTFILE = "FakeBots.dll"

all: FakeBots

clean:
    del /F /Q *~ *.obj *.dll

FakeBots: clean
    $(CC) $(CFLAGS) -c lib/sdk/*.cpp
    $(CC) $(CFLAGS) -c lib/raknet/*.cpp
    $(CC) $(CFLAGS) -c lib/subhook/subhook.c
    $(CC) $(CFLAGS) -c lib/subhook/subhook_x86.c
    $(CC) $(CFLAGS) -c lib/sampgdk/sampgdk.c
    $(CC) $(CFLAGS) -c src/*.cpp

    $(CC) $(LDFLAGS) /Fe:$(FAKEBOTS_OUTFILE) *.obj

Error:


subhook.c
        cl /O2 /EHsc /std:c++17 /DWIN32 /DSUBHOOK_STATIC -c lib/subhook/subhook_x86.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

subhook_x86.c
        cl /O2 /EHsc /std:c++17 /DWIN32 /DSUBHOOK_STATIC -c lib/sampgdk/sampgdk.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

sampgdk.c
        cl /O2 /EHsc /std:c++17 /DWIN32 /DSUBHOOK_STATIC -c src/*.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

Addresses.cpp
amxfunctions.cpp
CCallbackManager.cpp
CGangZonePool.cpp
CPickupPool.cpp
main.cpp
RPCs.cpp
Utils.cpp
Generating Code...
        cl /LD /link ws2_32.lib /Fe:"FakeBots.dll" *.obj
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line error D8003 : missing source filename
NMAKE : fatal error U1077: 'cl /LD /link ws2_32.lib /Fe:"FakeBots.dll" *.obj' : return code '0x2'
Stop.
PS C:\Users\r565\Desktop\MihanPlayer>
发布评论

评论列表(0)

  1. 暂无评论