Wim
There should be enough experience with a shitload of IDEs in this group
Pavel
Can I check at a compile-time whether some functionality is supported or not by the compiler? I want to make a macro that uses [[likely]]/[[unlikely]] but only for compilers where it's supported. It's only gcc right now, so for clang I need to fall back to __builtin_expect (even for C++2a). It seems that I can't check #if defined(likely) because it's an attribute, not an identifier..
Anonymous
In preprocessor directives
Anonymous
Google for "predefined macros"
Ибраги́м
It's adequate for simple programs. I've never done any larger C++ projects though.
Dev C++ is adequate for nothing. Use sth like Qt Creator to get u familiar with CMake at lease. And u also get good and proper code completion.
🇰 🇷 🇦 🇹 🇴 🇸😜
Hi. It's possible to make gui apps or somethings like network of your material or camera without APIs like opengl or win32? Just using native c ? Or c++?
🇰 🇷 🇦 🇹 🇴 🇸😜
I don't understand why peoples use opengl rather used directly native c ? Because opengl is build using c
🇰 🇷 🇦 🇹 🇴 🇸😜
No
Why?
Pavel
If I'm checking with ```#if __cplusplus >= 201803L```as said here https://en.cppreference.com/w/cpp/feature_test But then the check fails for gcc with C++2a as well (where it's supported). Well, I think I will postpone that changes until it is supported by clang
Foxner
Dev C++ is adequate for nothing. Use sth like Qt Creator to get u familiar with CMake at lease. And u also get good and proper code completion.
Thanks for the suggestion, but Dev-C++ does the job for me (most of the time), not sure why it wouldn't be adequate.
Anonymous
Why?
Because GUI is what an operating system defines, not a language
Anonymous
Even C++17 was fully implemented for the time a few weeks ago by Visual Studio
Anonymous
Hi every one
Anonymous
Hi every one
Nohello.com
Anonymous
Does anyone's here use Wt c++ for web development
Pavel
Don't use C++2a, it's not stable
That's a good point, actually
Anonymous
Dark
Nohello.com
Hello lol 😂
🇰 🇷 🇦 🇹 🇴 🇸😜
Because they don't want to reinvent the wheel.
But do become a master you must know how the wheel it built
Ибраги́м
Thanks for the suggestion, but Dev-C++ does the job for me (most of the time), not sure why it wouldn't be adequate.
I've been on CodeBlocks for years, the switch feels slightly painful but I'm getting used to pure CMake via Qt Creator
Anonymous
But do become a master you must know how the wheel it built
A language can't define how GUI works!!!
Anonymous
I need to know how to use my own style.css in wt I did this with app->useStyle
Ибраги́м
Better learn to use proper tools now
Anonymous
It worked but my edits weren't there
Pavel
But do become a master you must know how the wheel it built
But sometimes you just need to build a stable app/game.
Anonymous
🇰 🇷 🇦 🇹 🇴 🇸😜
Because GUI is what an operating system defines, not a language
But we use a language to build an operator system
Foxner
If you don't want to use any APIs then I'm afraid you'll have to write your own OS ... :-P
Pavel
What's the difference? I can use Vulcan if I need to write it on my own, if not, I can use SDL
Foxner
What's the difference? I can use Vulcan if I need to write it on my own, if not, I can use SDL
If I understood correctly he said he wants to learn how graphic APIs work.
Foxner
Sorry, replied to wrong message
Foxner
But do become a master you must know how the wheel it built
As far as I know, in order to access display pixels in an OS, you must use your OS's API. Take a look at WINAPI, if you're on windows. Someone correct me if I'm wrong.
🇰 🇷 🇦 🇹 🇴 🇸😜
Oki
🇰 🇷 🇦 🇹 🇴 🇸😜
I just want to use directly C to do all things event make gui or something without an apps
🇰 🇷 🇦 🇹 🇴 🇸😜
If you don't want to use any APIs then I'm afraid you'll have to write your own OS ... :-P
Why i have to make my own system? This system is make using a language( C / C++)
🇰 🇷 🇦 🇹 🇴 🇸😜
I can just use directly theses language to make all things i think😅
Foxner
Why i have to make my own system? This system is make using a language( C / C++)
If you want a GUI application, you need to access your system's display (and possibly other devices, like mouse and keyboard for example). Your OS probably won't let you access those devices directly, so you need to use its API.
🇰 🇷 🇦 🇹 🇴 🇸😜
Ok right
🇰 🇷 🇦 🇹 🇴 🇸😜
Each Os has an API for gui?
Talula
Each Os has an API for gui?
Not really... OS could have 10 different set of API for GUI.
Talula
Like Linux has gnome/KDE/QT etc.
Talula
While Windows has Windows GUI, then there are compatibilty thing which gives older GUI with different API and there is QT, etc.
🇰 🇷 🇦 🇹 🇴 🇸😜
Ok now, what i want to understand is if theses APIs has been make using an language like native C for exemple.if yes , that means C has functions that allow you to make APIs . so i can directly used it to male something😅
Nomid Íkorni-Sciurus
Each Os has an API for gui?
Not really. Speaking of linux, it does provide a framebuffer, primitive interface for drawing right into the screen and you'd be likely writing to each pixel or subpixel depending on the driver - in fact you'd interact with the driver directly. Though, there are some libraries which do it for you. For example, it is common for Linux based systems to feature X, which is a "server" to which you can send commands, like drawing an image, and it does have an official API (Xlib), but that would be yet quite low level. There are other libraries which abstract these operation even more and provide you a simple interface for drawing GUIs, for example Tk, GTK+, FLTK, FOX, Qt, etc, which are simpler to deal with. Windows instead has this api built in to the kernel, and provides you a "mid" level API for drawing GUIs.
🇰 🇷 🇦 🇹 🇴 🇸😜
Like Linux has gnome/KDE/QT etc.
Gnome /KDE etc .. Its not an APIs
Talula
Gnome /KDE etc .. Its not an APIs
No they are not but they have their API...
Anonymous
I just don't understand what is the problem not to use Qt
🇰 🇷 🇦 🇹 🇴 🇸😜
🇰 🇷 🇦 🇹 🇴 🇸😜
🙏 thanks
Nomid Íkorni-Sciurus
I just don't understand what is the problem not to use Qt
I think that it's huge and usually isn't fit to small applications because you should only care at what you're doing. Well, surely Qt is just more scalable, and programmer-friendly, but I prefer small things for small tasks.
Nomid Íkorni-Sciurus
That would be like using the fire of a dragon to power a boiler.
Nomid Íkorni-Sciurus
Are you sure you can do that? Aren't drivers handled by OS?
Drivers have their own API and usually the OS provides an ABI (and not API) which abstracts this interaction.
Anonymous
/adminlist
Dima
Tak tak
Nomid Íkorni-Sciurus
@Foxner for example Linux's modules usually provide development headers linked to linux's ABI so you don't have to rewrite it manually at assembly level.
🇰 🇷 🇦 🇹 🇴 🇸😜
@Foxner for example Linux's modules usually provide development headers linked to linux's ABI so you don't have to rewrite it manually at assembly level.
But when i want to make my lib for exemple something like SDL or network lib , what i have to use? API or native language?
Nomid Íkorni-Sciurus
But when i want to make my lib for exemple something like SDL or network lib , what i have to use? API or native language?
I usually use libcurl for network related tasks. FLTK, FOX, GTK+ all provide SDL support. Qt and Wx do as well. Though, you could actually convert SDL's context output to an image and write it to the driver directly... but sincerely, just use a simple gui interface. I'd recommend FLTK or FOX for simplicity, or Qt (which is friendlier but it's heavy - that is a non-problem anyway).
🇰 🇷 🇦 🇹 🇴 🇸😜
Qt is not open source
Nomid Íkorni-Sciurus
Qt is not open source
But it's a rather good cross-platform library.
Nomid Íkorni-Sciurus
I'd recommend FLTK or FOX for simplicity though.
🇰 🇷 🇦 🇹 🇴 🇸😜
It's for that i want master c++ making an framwork or libs
Nomid Íkorni-Sciurus
It's for that i want master c++ making an framwork or libs
oh. don't start with GUIs then. It's not really as simple as you might expect.
🇰 🇷 🇦 🇹 🇴 🇸😜
Nomid Íkorni-Sciurus
Trust me. I'm writing a virtual machine and the video driver is taking me lots of time just for the design part.