$ g++ -I/usr/local/include/FL -c Rabbit.cc
$ g++ -I/usr/local/lib -o Rabbit.o
g++: fatal error: no input files
compilation terminated.
I even found this page: <...
Type: Posts; User: FourAngels
$ g++ -I/usr/local/include/FL -c Rabbit.cc
$ g++ -I/usr/local/lib -o Rabbit.o
g++: fatal error: no input files
compilation terminated.
I even found this page: <...
I had installed it, but I could not get an example program to compile and link. I used:
g++ -I/usr/local/Include/FL -c Rabbit.cc
Next step, It did not know how to link the .o file.
player_name[i] is not the first element if i is 1 instead of 0. Maybe that is the problem.
Yes, it does use cmake for sure however there is a couple of directories with source files. So I thought that I could ignore cmake and use these two directories because all of the files are located...
I wasted close to 2 hrs trying to get my Makefile to compile an Fltk program. I downloaded Fltk because I went to the Stroustrup book. In the end it did not work, but the lib files are all set up for...
I tried it finally. This was the result. It overwrote the original line however the new line was not as long as the original, so it looks like it could be a problem.
Here is some text line 1...
You could try to open the file and read the line that you want, edit it by writing a new line, than overwrite the file at that line location with the edited line of text. It might work.
This link will help. I could not find this information at the time when I had this problem <https://ftp.gnu.org/old-gnu/Manuals/make-3.79.1/html_chapter/make_10.html#SEC95 >.
Try something more simple, unless I misunderstood the question!.... no compiler on hand to test the code.
Okay, okay, take it easy. I wrote the linked lists last night and I did not realize that I compiled with g++ instead of gcc.
I didn't want to do the cast on the return type however the compiler complained, but it might be because I wrote c code and compiled it with the g++ compiler instead of the regular gcc compiler...
Do you know the line number or do you have to find out what line number that the text string you want to edit is located on? It is easy to read a text file line by line.
I wrote this sample code using your structure, however I do not know what you actually want to do with the program but it looks like you want a 100 books on record.
#include <stdio.h>...
There might be more than one choice, however I have chosen one specific way to go, one way out of eight possible ways. It appears that the Gnu and these books that I am going by for C/C++/Python,...
The Gnu option is my only choice here, I believe, and I almost have things under control now. I can see the path better now that I have blundered enough times. The Gnu is the light, to brighten the...
...wasn't quite finished talking.
I sort of just follow what the book that I am reading says to do, except that it does not tell me everything, right. I have a few different books that I am...
I have to prepare to make an open source effort, although at this time I am just reading some books. What do you mean, I thought that gnu is the best. As a second language I will take python and it...
Yes I will still be spending a bit more time on Makefile and thanks for the info. I have Qt Creator set up however if I want an open source project than I need to use package config, auto tools, and...
This is more like the answer that I was looking for. I did not have the -o flag, so I could get it to compile into a .o file, but it would not link until I added that flag, and also the -c needed to...
Wow, this thread is now in the Projects and Recruitment forum...someone moved it here. In that case, I'll take the job!
#include<stdio.h>
int main() {
int N;
float number;
The fscanf function will work better than fgets, if you can figure out how to set it up. Although I have not used fgets in 10 years, maybe it is fine. Actually the first line is N?
int N;...
I updated the C++ makefile. It is a bit better this way: Anyway, it appeared that I had to use two lines because the -c option compiled the code but did not link, whereas with gcc the flags do both...
I want to have makefiles for both c and c++ in different file folder locations. The c makefile here was nice and easy (the file needs to be called Exercises.c for this makefile...I did not set it up...
My interpretation is that the functions are located in that .so file that you searched. It says this about .so files: "The advantage of .so (shared object) over .a library is that they are linked...
Sorry that I wrote the two lines of code in the wrong order, It was a bit tricky, that was the trick, starting the loop at 1 instead of the usual 0 counter, and doing the update to the grains after...