User forums > Help

Again with the multiple files

<< < (2/2)

st_adamin:
That got it, thanks.  It actually took a 'lowest priority' build on main.cpp (highest weight - lowest priority) so that it was the last thing built.  When I had main as highest priority, it terminated with a link violation.

No, neither file depends on the other, but I'm going to venture a guess that if they do in the future, the one 'depended upon' will probably need to go first, then the one that makes use of it, then the main. 

Like I said, I'm not too up on c++, but I sort *thought* that was part of the reason headers were used, something about saving "holes" in the code so that after completion the linker would tie the different modules together in the right places... I guess that's simplistic.  I would also guess that if its not working, that's almost the fault of Borland.

I didn't have any problem setting up Borland on Win7 though, other than the Win32 Template Application (the resource file specifically, I had to delete the font size and font; error:BEGIN expected).  But in searching that error, it seemed that some of the templates were "faulty."  I suppose if I were more familiar with windows apps in c++, I probably would have been able to more accurately diagnose the issue.  C# is danged convenient, but I wanted to move to something more portable, and for that matter more "fair."

Thanks a lot, Tim.

Adam

Navigation

[0] Message Index

[*] Previous page

Go to full version