Giter VIP home page Giter VIP logo

Comments (7)

copygirl avatar copygirl commented on June 25, 2024

Friendly reminder: The error messages contain Markdown formatting characters so they aren't showing up as intended. You can surround them with backticks, in this case two, since the message itself contains backticks:

Error LNK2019 unresolved external symbol _ecs_abort referenced in function "public: __cdecl flecs::query_base::query_base(struct ecs_world_t *,struct ecs_query_desc_t *)" (??0query_base@flecs@@qeaa@PEAUecs_world_t@@PEAUecs_query_desc_t@@@z)

Error LNK2019 unresolved external symbol _ecs_assert referenced in function "private: static void __cdecl flecs::_::each_invoker<class `public: __cdecl <lambda_1>::operator()(struct flecs::entity,struct syscomp)const '::`2'::<lambda_1>,struct querycomp>::invoke_callback<struct flecs::_::each_column,struct flecs::_::term_ptr,0>(struct ecs_iter_t *,class `public: __cdecl <lambda_1>::operator()(struct flecs::entity,struct syscomp)const '::`2'::<lambda_1> const &,unsigned __int64,struct flecs::array<struct flecs::_::term_ptr,1,void> &,struct flecs::_::term_ptr)" (??$invoke_callback@Ueach_column@_@flecs@@Uterm_ptr@23@$0A@@?$each_invoker@V<lambda_1>@?1???R1@QEBA@Uentity@flecs@@Usyscomp@@@z@Uquerycomp@@@_@flecs@@CAXPEAUecs_iter_t@@aebv<lambda_1>@?1???R4@QEBA@Uentity@2@Usyscomp@@@z@_KAEAU?$array@Uterm_ptr@_@flecs@@$00X@2@Uterm_ptr@12@@z)

from flecs.

SanderMertens avatar SanderMertens commented on June 25, 2024

I have the flecs::world ecs; as a global variable in a .h and .cpp file

Are you also compiling the flecs.c file? That could explain why you're getting missing symbols.

from flecs.

GeorKous avatar GeorKous commented on June 25, 2024

I changed both program's Properties->Configuration Properties->General->C language standard to ISO C11 standard from Default (legacy MSVC) and now the test program runs on both release and debug. However i still get the exception error in my main program at line 5279 ecs_stage_t *stage = flecs_stage_from_world(&world);

Are you also compiling the flecs.c file? That could explain why you're getting missing symbols.

If you mean if i have the flecs.c file in my project together with the flecs.h file then yes they are together in the same directory

from flecs.

GeorKous avatar GeorKous commented on June 25, 2024

This line of code causes an exception result = (char *) ecs_os_malloc(size + 1); inside the function ecs_vasprintf the size variable in my project is a valid 46. Should i ask in discord for help?

from flecs.

SanderMertens avatar SanderMertens commented on June 25, 2024

Hm, that typically would mean that the OS API hasn't been initialized yet. Are you by any chance trying to call Flecs functions before creating the world? Can you share the stack trace of that crash?

from flecs.

GeorKous avatar GeorKous commented on June 25, 2024
0000000000000000()	Unknown
>	MagiCube-Infinity.exe!ecs_vasprintf(const char * fmt, char * args) Line 14578	C
	MagiCube-Infinity.exe!ecs_printv_(int level, const char * file, int line, const char * fmt, char * args) Line 28402	C
	MagiCube-Infinity.exe!ecs_log_(int level, const char * file, int line, const char * fmt, ...) Line 28458	C
	MagiCube-Infinity.exe!ecs_assert_log_(int err, const char * cond_str, const char * file, int line, const char * fmt, ...) Line 28599	C
	MagiCube-Infinity.exe!ecs_entity_init(ecs_world_t * world, const ecs_entity_desc_t * desc) Line 5275	C
	MagiCube-Infinity.exe!flecs::_::node_builder<flecs::system,ecs_system_desc_t,flecs::system_builder<ShaderProgram>,flecs::system_builder_i,ShaderProgram>::node_builder<flecs::system,ecs_system_desc_t,flecs::system_builder<ShaderProgram>,flecs::system_builder_i,ShaderProgram>(ecs_world_t * world, const char * name) Line 29707	C++
	MagiCube-Infinity.exe!flecs::system_builder<ShaderProgram>::system_builder<ShaderProgram>(ecs_world_t * world, const char * name) Line 30325	C++
	MagiCube-Infinity.exe!flecs::world::system<ShaderProgram>() Line 30520	C++
	MagiCube-Infinity.exe!`dynamic initializer for 'ShaderProg''() Line 4	C++
	MagiCube-Infinity.exe!_initterm(void(*)() * first, void(*)() * last) Line 22	C++
	[External Code]	

This is what the Call Stack window showed me, also thanks in advance for your time

from flecs.

SanderMertens avatar SanderMertens commented on June 25, 2024

Closing as there's a duplicate help thread on the discord.

from flecs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.