Git Product home page Git Product logo

Comments (7)

ReallyComeOn avatar ReallyComeOn commented on June 27, 2024 1

V-EZ's lib (.so) works perfectly with only C.

The header file just has a few small mistakes with certain typedefs.

from v-ez.

manhnt9 avatar manhnt9 commented on June 27, 2024

Could you paste the exact error output of the compiler?

from v-ez.

ReallyComeOn avatar ReallyComeOn commented on June 27, 2024

Here's the output:

In file included from ../src/main.c:2:
../include/vez/VEZ.h:178:11: error: unknown type name ‘VezMemberInfo’
 const VezMemberInfo* pNext;
       ^~~~~~~~~~~~~
../include/vez/VEZ.h:179:11: error: unknown type name ‘VezMemberInfo’
 const VezMemberInfo* pMembers;
       ^~~~~~~~~~~~~
../include/vez/VEZ.h:395:11: error: unknown type name ‘VezAttachmentInfo’
 const VezAttachmentInfo* pAttachments;
       ^~~~~~~~~~~~~~~~~
In file included from ../src/main.c:2:
../include/vez/VEZ.h:573:60: error: unknown type name ‘VezMultisampleState’
 VKAPI_ATTR void VKAPI_CALL vezCmdSetMultisampleState(const VezMultisampleState* pStateInfo);
                                                        ^~~~~~~~~~~~~~~~~~~
../include/vez/VEZ.h:574:61: error: unknown type name ‘VezDepthStencilState’
 VKAPI_ATTR void VKAPI_CALL vezCmdSetDepthStencilState(const VezDepthStencilState* pStateInfo);

from v-ez.

manhnt9 avatar manhnt9 commented on June 27, 2024

A minimal example would help the debugging. If you could, please make a .zip containing a single file that causes the problem and post it with GCC command or Makefile/CMake/etc so a developer could build and try fixing easily.

from v-ez.

ReallyComeOn avatar ReallyComeOn commented on June 27, 2024

Just create a 'main.c' file and add the line '#include "VEZ.h"'.
Then run:

gcc main.c -o main

Also, compiling with CLANG yields the exact same result.

from v-ez.

manhnt9 avatar manhnt9 commented on June 27, 2024

I'm afraid that this problem is out of scope, because most V-EZ's code is C++. And you can't compile as C code since C doesn't have class keyword. So it's not possible to use V-EZ in C-only environment I think.

from v-ez.

ForestCSharp avatar ForestCSharp commented on June 27, 2024

I got V-EZ compiling for my V-EZ rust bindings. Could be useful for this issue: #71

from v-ez.

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.