You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So disclaimer I don't really know what I'm doing :)
So I downloaded the .tgz file from your website extracted it then extracted the tar file
I then opened up the msvc folder and vs2015 and then into chipmunk I don't have visual studio installed but i do have the build tools so i retargeted the vcxproj file and then built it using msbuild chipmunk.vcxproj
I then took all the files in the x64 -> debug folder and moved them to a folder called bin in the project i'm making then grabbed the include folder as well then moved the chipmunk.lib file into the right place and made a simple project using CSFML and Chipmunk and tried to run it in vs code and got the following console output:
Starting build...
Build finished with errors(s):
main.c
Microsoft (R) Incremental Linker Version 14.28.29333.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:main.exe
/debug
/MACHINE:x64
"/out:C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/bin/main.exe"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/csfml-audio.lib"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/csfml-graphics.lib"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/csfml-network.lib"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/csfml-system.lib"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/csfml-window.lib"
"C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial/externals/lib/chipmunk.lib"
main.obj
Creating library C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial\bin\main.lib and object C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial\bin\main.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpHashSet.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpSpaceComponent.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpArray.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpSpaceHash.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpBBTree.obj)'
LINK : warning LNK4217: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpBody.obj)' in function 'cpBodyAlloc'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpShape.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpSpace.obj)'
LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'chipmunk.lib(cpSpaceStep.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpSpatialIndex.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpHashSet.obj)'
LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpSpaceComponent.obj)' in function 'cpBodySleepWithGroup'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpArray.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpSpaceHash.obj)'
LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpBBTree.obj)' in function 'cpBBTreeReindexObject'
LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpBody.obj)' in function 'cpBodyFree'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpShape.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpSpace.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'chipmunk.lib(cpSpaceStep.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpSpatialIndex.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpArbiter.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpHashSet.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpSpaceComponent.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpCollision.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpSpaceHash.obj)'
LINK : warning LNK4217: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpBBTree.obj)' in function 'cpBBTreeReindex'
LINK : warning LNK4217: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpBody.obj)' in function 'cpBodySanityCheck'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpShape.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpSpace.obj)'
LINK : warning LNK4286: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'chipmunk.lib(cpSpaceStep.obj)'
LINK : warning LNK4217: symbol '__acrt_iob_func' defined in 'libucrt.lib(_file.obj)' is imported by 'chipmunk.lib(cpSpace.obj)' in function 'printf'
LINK : warning LNK4217: symbol '__acrt_iob_func' defined in 'libucrt.lib(_file.obj)' is imported by 'chipmunk.lib(chipmunk.obj)' in function 'cpAreaForPoly'
LINK : warning LNK4217: symbol '__stdio_common_vfprintf' defined in 'libucrt.lib(output.obj)' is imported by 'chipmunk.lib(cpSpace.obj)' in function '_vfprintf_l'
LINK : warning LNK4286: symbol '__stdio_common_vfprintf' defined in 'libucrt.lib(output.obj)' is imported by 'chipmunk.lib(chipmunk.obj)'
LINK : warning LNK4217: symbol 'qsort' defined in 'libucrt.lib(qsort.obj)' is imported by 'chipmunk.lib(cpBBTree.obj)' in function 'partitionNodes'
chipmunk.lib(cpArray.obj) : error LNK2019: unresolved external symbol __imp_realloc referenced in function cpArrayPush
chipmunk.lib(cpSpaceHash.obj) : error LNK2019: unresolved external symbol __imp_floor referenced in function cpSpaceHashSegmentQuery
C:\Users\Student\Documents\Programming\CSFML+Chipmunk Tutorial\bin\main.exe : fatal error LNK1120: 2 unresolved externals
The terminal process terminated with exit code: -1.
Terminal will be reused by tasks, press any key to close it.
I'm not 100% sure what's going on here so I'm hoping someone can help me
My tasks.json file looks like this:
Update: I downloaded Visual Studio 2019 and copied my project into Visual Studio 2019 with all the chipmunk files I'd previously compiled with msbuild and it runs fine so now I'm even more confused any help would be appreciated
So disclaimer I don't really know what I'm doing :)
So I downloaded the .tgz file from your website extracted it then extracted the tar file
I then opened up the msvc folder and vs2015 and then into chipmunk I don't have visual studio installed but i do have the build tools so i retargeted the vcxproj file and then built it using
msbuild chipmunk.vcxproj
I then took all the files in the x64 -> debug folder and moved them to a folder called bin in the project i'm making then grabbed the include folder as well then moved the chipmunk.lib file into the right place and made a simple project using CSFML and Chipmunk and tried to run it in vs code and got the following console output:
I'm not 100% sure what's going on here so I'm hoping someone can help me
My tasks.json file looks like this:
this is my code:
The text was updated successfully, but these errors were encountered: