Strange errors when compiling

A while back everything I used to compile would compile normally but now, when compiling, it’ll get to .cpp files, and at a random file, it’ll just say “Error” and no exe file will be generated.

It looks like this for anyone who is wondering.

source/Achievements.hx:132: characters 30-54 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead

Compiling group: haxe
cl.exe -Iinclude -IC:/HaxeToolkit/haxe/lib/discord_rpc/git/linc/ -IC:/HaxeToolkit/haxe/lib/linc_luajit/git//linc/ -I C:/HaxeToolkit/haxe/lib/hxCodec/2,5,0/lib/vlc/include/ -I C:/HaxeToolkit/haxe/lib/hxCodec/2,5,0/lib/vlc/src/ -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdD:\DesktopNew\Goiky Throwdown\export\release\windows\obj\obj/msvc1964-nc/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -IC:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/include -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_CHECK_POINTER(haxe) -DHXCPP_STACK_LINE(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN(main) -wd4996 ... tags=[haxe,static]
 - src/flixel/util/_FlxBitmapDataPool/FlxBitmapDataPoolNode.cpp
 - src/flixel/text/FlxTextFormatMarkerPair.cpp
 - src/flixel/system/frontEnds/BitmapFrontEnd.cpp
 - src/flixel/graphics/frames/FlxFrameCollectionType.cpp
 - src/flixel/group/FlxTypedSpriteGroup.cpp
 - src/NoteSplash.cpp
 - src/flixel/addons/transition/FlxTransitionableState.cpp
 - src/lime/graphics/opengl/ext/EXT_sRGB.cpp
 - src/flixel/util/LabelValuePair.cpp
 - src/lime/app/Event.cpp  [haxe,release]
 - src/flixel/graphics/atlas/FlxAtlas.cpp
 - src/flixel/system/macros/FlxMacroUtil.cpp
 - src/CoolUtil.cpp
 - src/openfl/filters/BlurFilter.cpp  [haxe,release]
 - src/flixel/effects/FlxFlicker.cpp
 - src/flixel/addons/ui/FlxUIRadioGroup.cpp
 - src/openfl/display/Loader.cpp  [haxe,release]
 - src/sys/thread/EventLoop.cpp
 - src/lime/_internal/backend/native/GamepadEventInfo.cpp
 - src/flixel/addons/ui/XY.cpp
 - src/lime/net/curl/CURLMulti.cpp  [haxe,release]
 - src/flixel/system/debug/GraphicWatch.cpp
 - src/flixel/input/actions/FlxActionDigital.cpp
 - src/lime/math/Vector2.cpp  [haxe,release]
 - src/openfl/utils/_ByteArray/ByteArray_Impl_.cpp
 - src/flixel/input/gamepad/id/MFiID.cpp
 - src/openfl/display/DisplayObjectShader.cpp  [haxe,release]
 - src/lime/utils/BytePointerData.cpp
 - src/flixel/tweens/misc/VarTween.cpp
 - src/AttachedText.cpp
 - src/lime/graphics/opengl/ext/QCOM_perfmon_global_mode.cpp
 - src/Highscore.cpp
 - src/openfl/net/_SharedObjectFlushStatus/SharedObjectFlushStatus_Impl_.cpp
 - src/lime/graphics/cairo/_CairoPattern/CairoPattern_Impl_.cpp
 - src/hscript/ErrorDef.cpp
 - src/flixel/addons/display/FlxRuntimeShader.cpp
 - src/openfl/geom/Matrix3D.cpp  [haxe,release]
 - src/openfl/display/_internal/CanvasDisplayObject.cpp
 - src/openfl/system/ApplicationDomain.cpp  [haxe,release]
 - src/lime/ui/_KeyModifier/KeyModifier_Impl_.cpp
 - src/flixel/addons/effects/FlxTrailArea.cpp
 - src/lime/net/_HTTPRequest_String.cpp  [haxe,release]
 - src/flixel/tile/FlxTilemapAutoTiling.cpp
 - src/openfl/events/KeyboardEvent.cpp  [haxe,release]
 - src/lime/graphics/_FlashRenderContext/FlashRenderContext_Impl_.cpp
 - src/flixel/system/VirtualInputData.cpp
 - src/flixel/util/FlxVerticalAlign.cpp
 - src/openfl/display/_internal/Context3DGraphics.cpp  [haxe,release]
 - src/flixel/system/debug/interaction/tools/Transform.cpp
 - src/WiggleShader.cpp
 - src/ManifestResources.cpp
 - src/openfl/display/IGraphicsData.cpp
 - src/haxe/ds/StringMap.cpp
 - src/__ASSET__OPENFL__flixel_fonts_nokiafc22_ttf.cpp
 - src/openfl/events/MouseEvent.cpp  [haxe,release]
 - src/lime/graphics/opengl/ext/NVX_gpu_memory_info.cpp
 - src/openfl/utils/_AGALMiniAssembler/OpCode.cpp  [haxe,release]
 - src/lime/app/_Event_Array_String__Void.cpp  [haxe,release]
Error

(FYI, What I am trying to compile is a modified version of Friday Night Funkin’, it is known as Psych Engine.)

Along with this, I am getting some other weird errors, for example some I have listed:

source/Achievements.hx:132: characters 30-54 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
End_of_file

there are some more that can happen, sometimes it can say a random library is missing despite me having it installed, and this weird one right here:


this has been bugging me for days and i have no idea what to do :frowning: im not very skliled with haxe so i apologize if im hard to communicate with.

I really don’t know what you are trying to do but the problem is probably because you don’t have a C++ compiler.

Haxe OpenFL > Flixel targets C++ code generations and after that starts to compile that code using Visual Studio C compiler.

I don’t know whats the exact issue but based on what you provided I think it’s c compiler.