c++

  1. apprentice

    C Need guidance for programming in C on FreeBSD

    System: FreeBSD 14 I'm new to FreeBSD, coming from Linux and have always used gcc. In FreeBSD so I can compile in C and C++ what should I use? Thanks.
  2. U

    C++ FreeBSD-14 Vulkan-headers compile error

    I'm trying to compile this simple vulkan instance(Basically the vulkan tutorial) with GLFW(3.3.8) and Vulkan-headers(1.3.273) all from the pkg repo. I'm using the build2 build system with clang++. Although it doesn't matter whether I use G++ with libstdc++ or the system default. It keeps...
  3. B

    Solved Bleeding edge c++ development supported?

    I wanted to test some of the new features available in the clang-18 version (details can be found here: https://en.cppreference.com/w/cpp/compiler_support); How should I go about this? Because I'm guessing that since FreeBSD has its own libc, it won't be enough to just compile the compiler ;D Is...
  4. First_Law_of_Unix

    C ncurses blank lines (newline) not being displayed on terminal/console window

    I'm following a ncurses tutorial from here: https://www.viget.com/articles/game-programming-in-c-with-the-ncurses-library/ It shows how to make a simple bouncing character that goes left to right on the terminal window. Here is the code, I modified it slightly: #include <ncurses.h> #include...
  5. int0x50

    C find out list of C functions supported in FreeBSD

    is there a page or way to list out all the C functions (supported in FreeBSD) that are available? that are classified based on graphics, file i/o, system calls, networking; etc. for example, if i want to code in networking part, i may not know that some functions are available, but going...
  6. Samuel Venable

    Solved Odd Segfault, Very Specific and Obscure Steps to Reproduce

    I was wondering if anyone could look at my code and be able to help identify what I'm doing wrong? It gets the current working directory of a given process id using libprocstat. I normally does work and can get the cwd of a pid just fine, but that's assmuing I don't do the specific thing in my...
  7. V

    C Good IDE for C/C++ programming that doesn't look like the 1990's??

    Is there a single free IDE out there that does not look like it is from the 90's? Code::Blocks is fine but it seriously looks like the 1990's IDE in my old CS course book. VSCode is Microsoft bloatware but it both is and looks good. CLion is amazing but costs cash money and their new system...
  8. S

    C Building a current version of BOSSA

    Because the version in ports is ancient as a rock and doesn't support SAM4 Processors, I need to build a more recent Version. As usual for Linux- and Windows-centric software, documentation is near to non-existent, especially on how to build it, let alone on FreeBSD.... Apart from some commits...
  9. T

    GUI embedded software Rapsian os

    Hello, I am new to this community FreeBSD. I've read a lot article for FreeBSD. It's very secure and efficient operating system. Recently, I started working on new project. I'm building Raspberry Pi 4 embedded device. but the problem is that I can't able to edit operating system Raspbian OS. My...
  10. D

    C Checking for a program accessing hardware

    Is there a way to have my program check to see if another program is already accessing or attempting to access hardware, such as a webcam? A web search doesn't yield any results for this and I'm not even sure if FreeBSD has a way to check for this type of thing.
  11. jdb

    C Best HTML parsing library for C++

    Hey guys :) I am searching for a HTML parsing library for C++ with xPath support. Thanks in advance :D
  12. nerozero

    C Compiling with mysql cpp connector (-lmysqlcppconn) - core dumped

    Hello, trying to compile a simpliest project with mysql support: #include <iostream> using namespace std; int main(){ cout << "Hello world" << endl; return 0; } compile with g++: $g++ main.cpp -Wall -std=c++11 -lmysqlcppconn -o mysql-test $ ./mysql-test Segmentation fault (core...
  13. Maelstorm

    C++20 is coming out soon with 43+ new features being discussed...

    Assuming that we all know and love C++ (I rarely use it myself), the standards of C++11, C++14, and C++17 all add new features of...dubious...quality and usefulness. Now, C++20 is being drafted. However, Bjarne Stroustrup is firing warning shots about the **43** new features being proposed for...
  14. neilms

    Returning to learning C++

    Hi everyone, I bought a copy of Struostrups ‘Principles and practice of C++’. I started working through it but stopped studying due to other commitments. Anyway now I plan to continue working through the book. I guess that FreeBSD has improved a lot over the last 6 months or so. I’m planning on...
  15. C

    c++ compiler version issue

    Hi All, I'm working on a tool that checks the version of the compiler, to be more precise c++. This tool is multi platform and works on Linux also. The questions is that in general gcc have a parameter call -dumpversion that shows the version of the compiler and on freebsd12 and freebsd12 do...
  16. G

    Messed up C++ library

    I think I messed up libc++. I was trying to get something to compile, and I think I pkg remove -f'ed devel/llvm39 and reinstalled it. Now when I try and compile anything in C++ I get an error like the following: /usr/include/c++/v1/cmath:679:46: error: declaration conflicts with target of...
  17. D

    C pthreads error: 'PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP' was not declared in this scope

    Hello, I'm trying to switch from Linux to FreeBSD, but am unable to compile one of our custom software. After compiling many files, it eventually halts when trying to compile a file containing some pthread code: Building file: ../feedProcessor.cpp Invoking: GCC C++ Compiler g++7...
  18. R

    C setreuid() returns "operation not permitted" even it was sudo'ed

    Hello, I was testing one of my software on FreeBSD ,Where in the software i've been trying to replace the Real/Effective UID and GID of the process using below two functions setregid(),setreuid(). But these both functions return -1 as a result(when i got the errno to print it ssys "operations...
  19. spmzt

    Solved How to port my software?

    Hello, How can I create a port for my software?
  20. mseqs

    Other Best language for a database server

    Hello everyone. So, I'm writing a little database server/manager (I know, don't reinvent the wheel, but is a research project and I got a good idea, innovative, I hope) and from the beginning I thought to write it in Java, but after some researching about "performance and memory issues" I'm not...
Back
Top