1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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.
  8. 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
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. spmzt

    Solved How to port my software?

    Hello, How can I create a port for my software?
  17. 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...
  18. jrm@

    dlopen error

    I'm working on porting a C++ application to FreeBSD. It's compiling, but a call to dlopen() is failing. Here's a code snippet. static void *lib=NULL; lib=dlopen(filename,RTLD_NOW); const char* blah; if(blah=dlerror()) { info(filename); cout << blah << "\n"; } The output is...
  19. fender0107401

    Solved FreeBSD and CMake: compilation is fine but end up with linking errors.

    System info: uname -a FreeBSD vm-freebsd 10.2-RELEASE-p7 FreeBSD 10.2-RELEASE-p7 #0: Mon Nov 2 14:19:39 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 % cmake --version cmake version 3.4.1 CMake suite maintained and supported by Kitware (kitware.com/cmake)...