Comments (7)
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.
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.
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.
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.
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.
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.
Closing as there's a duplicate help thread on the discord.
from flecs.
Related Issues (20)
- observer loss event HOT 2
- [Question] Best way to share a component between differents entities HOT 3
- README link is broken HOT 1
- Compilation failed with errors when declaring 'free' as a macro. HOT 1
- Explorer hierarchy incomplete HOT 6
- free(): invalid pointer when using sorted query with std::list HOT 1
- Bug or question - HOT 1
- Lockstep support, or deterministic calculations. HOT 7
- filter_builder() assert fail, when use term().or_() HOT 2
- Queries with Or terms and wildcard terms cause internal error HOT 1
- entity::set(T*) writes garbage HOT 1
- ECS crash after conditionally adding to an entity when using Explorer HOT 7
- flecs crashes at startup when using clang built from git
- Unintuitive behavior of setting entity names as numbers HOT 4
- Enabling or disabling a component between defer_suspend and defer_resume keeps the world deferred after progress HOT 2
- World destruction with symmetric relationship and child causes assertion HOT 1
- Add flecs.c and flecs.h as download artefacts for releases HOT 3
- Strings not freed on runtime components HOT 5
- ecs_set() doesn't work C HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flecs.