Compiling with adding my own cpp files

Asked by Akshay Gupta

I am creating a new class which I want to compile with the project. The class is in a folder containing the header file for description of it and some cpp files for declaration.i want it to be added to the makefile of the project. But looking at the shear size of the makefile, I don't see it feasible adding it manually.

Please help me out in this.

Question information

Language:
English Edit question
Status:
Answered
For:
littlegreenbats Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sander van Dijk (sgvandijk) said :
#1

Hi Ashkay, please check out libbats' new home on github:

https://github.com/sgvandijk/libbats

it has a much more up to date version, with a manual that shows how to set up a project using libbats with Cmake. If you run into any further problems, don't hesitate to post an issue there

Revision history for this message
Akshay Gupta (akshaysngupta) said :
#2

Conf::Conf(std::string const &confFile)
  : Conf()
{
  parseConf(confFile);
}

: conf() dont seem right.
cmake is given error as
error: type ‘bats::Conf’ is not a direct base of ‘bats::Conf’

Revision history for this message
Sander van Dijk (sgvandijk) said :
#3

Please file an issue on GitHub, including some details about your Linux distribution, compiler version and full error output

Revision history for this message
Akshay Gupta (akshaysngupta) said :
#4

Hey, I have files the issue with all the details you asked for.

Can you help with this problem?

Provide an answer of your own, or ask Akshay Gupta for more information if necessary.

To post a message you must log in.