codeblocks

cannot build assimp with minGw64

允我心安 提交于 2021-01-29 06:34:39
问题 I used cmake and I was able to build a C::B project. But Compiling the Assimp.cbp file raised a bunch of errors. Is there someone experimented in compiling assimp with mingw64 under w10 for C::B to send me clues ? Thks in advance. Here are the log errors : C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\assimp_cmd.dir/objects.a(Main.cpp.obj):Main.cpp:(.text+0x8e): undefined reference to `Assimp::Importer::ValidateFlags(unsigned

CodeBlocks : [highlight: No such directory found

纵然是瞬间 提交于 2021-01-29 05:43:07
问题 I have already read the other questions on the site and none of them matched with the issue I had. I have already tried unistalling and then reinstalling codeblocks. Please help. Build Log : mingw32-g++.exe -Wall -fexceptions -g -c S:\Coding\C++\aloo\main.cpp -o obj\Debug\main.o mingw32-g++.exe -o bin\Debug\aloo.exe obj\Debug\main.o [highlight color=”yellow”]-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32[/highlight] "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a" mingw32-g++.exe:

C MySQL error “fatal error LNK1107: invalid or corrupt file: cannot read at 0x368”

旧街凉风 提交于 2021-01-29 04:24:24
问题 first off i'd like to start by explaining i am new to none web based programing languages, so this is really all new to me. But ive been trying to solve this problem all night and cant seem to get it. so I just installed a bunch of MySQL libraries. I create links to all the libraries and since I have done that, this error message has been popping up.I did a little bit of research on it, and it appears that the sarah message is happening because I'm using the dynamic library.but I have

-fpermissive option in codeblocks. Where do I put that “-fpermissive” option?

大城市里の小女人 提交于 2021-01-28 11:56:00
问题 #include <iostream> #include <fstream> #include <stdio.h> #include <math.h> I need help with this code. My compiler keeps asking me to use the -fpermissive option but I don't know where to input it. I've pasted the code below and the error that is shown. using namespace std; int cx = 0, cy = 0; double x =0, y=0, r = 5; int main(){ ofstream myfile; myfile.open("dingo.txt"); for(int g =0 ; g <= 360; g++) //find x and y //Get points of a circle. x = cx + r * cos(g); y = cy + r * sin(g); //This

Return value of fgets into main function

北慕城南 提交于 2021-01-28 05:21:12
问题 Function fWord asks my input, and should return the first word it encounters (until the first space). It works on Online Visual Studio, but if I try to compile it with codeBlocks, my input doesn't get printed. #include <stdio.h> #include <string.h> #include <ctype.h> char * fWord(); char * test; int main() { test = fWord(); printf("%s\n", test); return 0; } char * fWord() // ONLY READ THE FIRST WORD { char buffer[20]; char * input = buffer; fgets(input, sizeof(input), stdin); input = strtok

Codeblocks graphics.h not working

倖福魔咒の 提交于 2021-01-28 04:00:19
问题 When I do: #include <graphics.h> It says: fatal error: graphics.h: No such file or directory How to fix this? I'm using codeblocks 16.01 回答1: Using the angle brackets "<>" assumes graphics.h is part of the C standard library. After some research, it appears this file is no longer included in the library. If you wish to continue using this library, you will have to find graphics.h and place it in the same location as your source code. In your source code, you will then write: #include

Makefile and .Mak File + CodeBlocks and VStudio

混江龙づ霸主 提交于 2021-01-27 14:17:17
问题 I am a little new to the whole makefile concept so I have some questions regarding it. I am creating a project using CodeBlocks in linux, I used a tool called cbp2mak to create a .make file out of the CodeBlocks project (if anyone knows a better tool please let me know). Now I am not sure what the difference is between .mak and .makefile, could anyone tell me? I can compile .mak using "make -C .mak" but what is the difference? The reason im trying to use it is because I want provide the

C DLL In Code::Blocks

房东的猫 提交于 2021-01-27 12:36:30
问题 I can't find anything about how to make a C DLL in Code::Blocks. Whenever I try and look it up it shows links to using C++ DLLs in managed programming languages. And Code::Blocks doesn't give an option for a C DLL. What do I do? 回答1: File->New->Project to show this dialog: Then select Dynamic Link Library and away you go. 回答2: In Code::Blocks you create a new project, then select Dynamic Link Library (note: you can also, more easily create a Static Link Library, which is also available) and

c++ and boost program_options error: 'desc' does not name a type

徘徊边缘 提交于 2021-01-20 09:14:35
问题 I'm trying to follow this tutorial on boost program_options, but I'm getting this error: error: 'desc' does not name a type. Here is the source code I have: #include <boost/program_options.hpp> using namespace std; namespace po = boost::program_options; po::options_description desc("Allowed options"); desc.add_options() ("help", "produce help message") ("compression", po::value<int>(), "set compression level") ; int main() { return 0; } the error is on the line starting with 'desc.add_options

c++ and boost program_options error: 'desc' does not name a type

女生的网名这么多〃 提交于 2021-01-20 09:10:33
问题 I'm trying to follow this tutorial on boost program_options, but I'm getting this error: error: 'desc' does not name a type. Here is the source code I have: #include <boost/program_options.hpp> using namespace std; namespace po = boost::program_options; po::options_description desc("Allowed options"); desc.add_options() ("help", "produce help message") ("compression", po::value<int>(), "set compression level") ; int main() { return 0; } the error is on the line starting with 'desc.add_options