Closed ghost closed 4 years ago
And to know where i placed headers,I placed them in include
folder of Terra language compiler
I also copied them to beside test files,In fact you are not forced to place them in include
folder as i did first cause tests worked just by placing headers beside them
Where you write a terra program,Place headers beside it Almost copy them from your copy of MinGW but not all cause few headers are just required See code example above for included headers,From line 12...
Hope someone respond,Thanks!!!
Hi there,
If you just want a way to add new include directories, you can do that with INCLUDE_PATH
. That doesn't give you a way to set the linker though.
FYI, I do think we embed all/most of the headers that are bundled with Clang, but I don't think that actually gets us 100% of what we need, I think we still need the platform headers.
Just to set some expectations (also in reference to the other thread, which I skimmed briefly): This is an entirely volunteer project. No one on this project does it for their work (as far as I know) except in a very minimal way. We're happy to accept (reasonable) pull requests for new features and to provide some guidance on how to implement things, but in general people's time is limited. Therefore the best way to get things done is to push them forward on your own. For example, the reason why Terra's MSVC support is good is because of community effort. I'm sure we can add MinGW or tcc support as well but it will require some effort on your part.
Hope that helps.
About the way to include directories,Thank you!!! Terra compiler works so i don't need to push something to the repo,Just include headers But the problem of can't passing floats to C function is the problem
Every example i write it works,But the problem of can't passing floats to C function still happened If you can add this note below i'll be grateful
Terra also works with MinGW but you need to include MinGW
include
path
I opened this issue cause of a weird something i did but worked suddenly:
In fact when i downloaded Terra's Windows release I acknowledge that Lua made with C/C++ right? As a C programmer...
So...I found that Terra has missing headers I grabbed missing headers from a copy of MinGW compiler i have,Definitely from
include
folder And used it with terra testsThe results was shocking when all tests worked except few (7 or 8 tests) of them,By other means language can use MinGW compiler and it's headers instead of Clang or Visual C++
Even examples gives same output as what Visual Studio should outputs (I don't use Visual Studio) So...I used a library called raylib and it's for game programming
I tested a code with it,And it works so here is the code:
But the output:
In fact it's related to this issue Where who opened the related issue got same output i got,See here
Note that there is different output on Linux,You only get what i got if you use Microsoft Windows
And i even said that code works without errors in that issue,But i don't know what causes this Can someone believe me and believe that Terra works on MinGW?!! So if i'm right,That means i can also run it on Tiny C (If possible...)
Sorry for posting by this bad way... Thanks for support!!!