Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7361761

Browse files
committed
Change build command to work with free functions
Since the driver.cc and the $(CLASSNAME).cc both are source files and driver.cc includes $(CLASSNME).cc a linker error is created when building and linking both of them. If only driver.cc is built and linked everything is ok. However if there is a change in $(CLASSNAME).cc the rebuilt has to be done. Therefore the remaining implicit rules have to stay in the Makefile.
1 parent c4620c9 commit 7361761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/com/dogcows/resources/C++Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ prove: all
3535

3636

3737
%$(EXEEXT): %.cc
38-
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
38+
$(LINK.cc) $< $(LOADLIBES) $(LDLIBS) -o $@
3939

4040
driver$(EXEEXT): $CLASSNAME$.cc
4141

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /