skip to Main Content

Ubuntu – Use boost::filesystem with std::ifstream?

I'm using Ubuntu 20.04 LTS with C++ 20 and boost 1.71.0. The following compiles without error and outputs the sample file content: #include <iostream> #include <string> #include <boost/filesystem.hpp> #include <filesystem> int main() { boost::filesystem::path output_dir = boost::filesystem::path("/out/"); boost::filesystem::path sample_file =…

VIEW QUESTION

C# .net and Mysql insert statement fails during command execution

I am trying to insert into the mysql database the following record in a Create() method in a Repository class: MySqlCommand command = new MySqlCommand("INSERT INTO `documentdetails` (?dtoDocumentId);", _connection); command.Connection = _connection; command.CommandType = CommandType.Text; command.Parameters.Add("?dtoDocumentId", MySqlDbType.Int64).Value=documentDetail.DocumentId; command.ExecuteNonQuery(); The documentId…

VIEW QUESTION

Visual Studio Code Makefile extension not executing make as expected

Executing make command on this Makefile compiles as expected: #SHELL = /bin/sh APP:= basic-tutorial-2 APP_INSTALL_DIR?= $(HOME)/Projects/test-gstreamer-2/build/bin CC:=/usr/bin/aarch64-linux-gnu-gcc SRCS:= $(wildcard *.c) INCS:= $(wildcard *.h) PKGS:= gstreamer-1.0 OBJS:= $(SRCS:.c=.o) CFLAGS:= $(shell pkg-config --cflags $(PKGS)) LIBS:= $(shell pkg-config --libs $(PKGS)) #$(info $$CFLAGS is…

VIEW QUESTION
Back To Top
Search