Unexpected PROS Build Error

make: *** No rule to make target 'bin/template.cpp', needed by 'bin/hot.package.elft'. Stop. Error: Failed to build

Does anyone know why this error is occurring and what I can do to solve it?

2 Likes

Looks like there is something wrong with the template.cpp source file. You’re gonna need to include more info if you want to trouble shoot this problem.

1 Like

Why do you have a .cpp file inside the bin/ directory?

image
is this what you’re talking about?

these pop up when i build my project.

The .cpp.o files should be there, but the output you posted above implies there is a template.cpp inside bin… Not really sure what to make of that.

1 Like

Here’s the full code.

https://drive.google.com/drive/folders/1JIvWKtaqpF6OGfU1ojn9i7FPoR3stG3O?usp=sharing

Try it without a space in the file name. That will likely break common.mk.

3 Likes

but i don’t have any spaces in the file name…

Ahh woops, I swear I saw one. What you uploaded compiles fine for me (after removing the duplicate inertial definition). Can you put the output of prosv5 make all VERBOSE=1 in a gist (or something) for me to look at?

1 Like

Sorry I’m fairly new to this stuff…

So do you mean you want me to run it on cmd?

yea, open up cmd and navigate to the root of your project. From there, run prosv5 make all VERBOSE=1 > output.txt and copy the output.txt file somewhere that I can see it. https://gist.github.com/ is a good way, or I suppose you can put it in the google drive.

3 Likes

fbb74fa07469205f7e56d9861e935025-edbbfd8ddf150730fc070cf8ef1a1a8527850587.zip (1.6 KB)

Not sure how you got the error you posted at the start of this, but the relevant one is here:

bin/subsystemHeaders/globals.cpp.o:(.bss.inertial+0x0): multiple definition of `inertial’
bin/subsystemHeaders/drive.cpp.o:(.bss.inertial+0x0): first defined here

You probably want to delete the inerti in drive.cpp,as it’s declared in a header and defined in globals.cpp

3 Likes

Well, turns out, it actually worked. (I still honestly have no idea why I got my original error…)

btw, thanks so much for the help!