Search:
Type: Posts; User: LMHmedchem
Search:
Search took 0.05 seconds.
-
January 29th, 2020, 11:45 AM
I fixed this by changing the order of the assignments,
# create name for the build directory
BDIR := bld_$(OS)_$(KERN).$(ARCH)_$(CNAME)_$(FNAME)_$(ver)
# mkdir if the directories do not exist...
-
January 28th, 2020, 01:32 PM
Hello,
My makefiles are set up to generate an environment specific build directory based on the local configuration and some values passed to make. It generally looks like,
# compilers, may be...
-
January 25th, 2020, 02:47 PM
I always use := when adding to a variable that has already been assigned.
I would do,
# set for most warnings
CFLAGS = -Wall
# add to CFLAGS to supress some warnings in all
CFLAGS :=...
-
January 25th, 2020, 01:54 PM
Hello,
I have an application that I just brought into eclipse. I have previously just built this application from the command line. I am looking to suppress some warnings in the short term but...
-
December 16th, 2019, 04:37 PM
Oddly enough, it is working now. I am not sure what I did but now the map is being read correctly using your suggested modifications.
LMHmedchem
-
December 16th, 2019, 04:32 PM
I made your suggested modifications and it compiles. your changes are in red text.
// file comments.h
#ifndef WRITE_FILE_COMMENTS_CPP_H
#define WRITE_FILE_COMMENTS_CPP_H
#include <string>...
-
December 16th, 2019, 12:01 PM
Thanks, yes that was the problem. I made a loading function that declares the map, assigns the key/value pairs, and returns the map to the calling function. I have done this before, so I don't know...
-
December 14th, 2019, 01:17 PM
Hello,
I am writing a little program and have run into a strange error doing something I must have done thousands of times. I am writing a static map<unsigned int, string> in a header file and...
-
October 8th, 2019, 02:29 PM
So at the moment, I am allocating 61440 bytes and not 61440 bits like I thought?
Based on the data that is being passed,
C number of elements in each array
PARAMETER( SIZEX = 476 )
C number...
-
October 8th, 2019, 11:05 AM
I am not sure since I didn't write this section.
I think the code I posted earlier was not helpful, meaning it looks like that was just the statement that initialized the shared memory block to 0....
-
October 7th, 2019, 09:20 PM
Hello,
I have two c++ binaries that perform some IPC using shared memory. I didn't write this code and the comments are a little unclear. I need to develop a unambiguous formula for determining...
-
August 7th, 2019, 01:45 PM
The code I posted compiles, I haven't checked it at runtime yet. For now, the map will only contain the 10 entries I listed above. It may actually be less overhead to just use an if else conditional...
-
August 7th, 2019, 10:21 AM
I already have a constants.h file, so I added the lookup function there,
// constants.h
// include guard
#ifndef CONSTANTS_DEF
#define CONSTANTS_DEF
#include <string>
-
August 6th, 2019, 09:47 PM
Hello,
I wrote the beginnings of a very simple map to use as a lookup.
#include <string>
#include <map>
using namespace std;
-
August 22nd, 2018, 08:13 PM
The problem in my post was a typo. The real problem was that I checked the data container before the names were it in. I printed name_list.size() and it was correct, but all the name values were the...
-
August 22nd, 2018, 01:32 PM
Hello,
Sorry for having multiple threads going but this is bugging me. I have a little function to check some input data for duplicates and it's not working.
// class for main data container...
-
August 20th, 2018, 01:00 PM
The function definition for vector_between_points() is in the first code block in post 13, but I wasn't passing the vector of double to vector_between_points() as a constant reference. Changing that...
-
August 20th, 2018, 12:34 AM
Changing to a vector of iterators has created a quandary with some of my functions. When I was looping on my vector of data objects, I would pass object member variables to functions directly by...
-
August 19th, 2018, 09:08 PM
I thought it would be something stupid, I can't pass my data container to the function as const and then assign the location .begin() to a normal iterator. Unless there is some other method or...
-
August 19th, 2018, 08:28 PM
I am doing some of the basic work to collect a subset and loop on it.
I am getting a compiler error from the function that is collecting the subset,
// row_data class defined
class...
-
August 18th, 2018, 04:20 PM
Generally I would have already confirmed that an object was created corresponding to each name, but I guess there are other reasons why find_if() could fail. I need to add allot more exception...
-
August 18th, 2018, 04:18 PM
Sorry for the delay, I spent most of yesterday with the computer off because of allot of local lightning.
In this case, there are about 2000 rows of data. For each row, there is a vector<string>...
-
August 16th, 2018, 12:25 PM
Hello,
I have allot of data stored in a vector of the following objects,
class row_data {
public:
// class constructor
-
August 16th, 2018, 11:48 AM
The main reason I still use c++98 (and sometimes still gcc3) is that I often have to work on a very large program that was originally written in F66 (on IBM punch cards) and then revised when F77...
-
August 14th, 2018, 12:15 PM
Simple question this time. I was reordering some classes to get rid of annoying "will be initialized after" warnings and it suddenly didn't make any sense to me that I was declaring my public member...
|
Click Here to Expand Forum to Full Width
|