 Everybody, this is Brian. And welcome to the 113th tutorial with Qt and C++. All right, if you've been following along here, you know that we have built our program along with Zlib and QAZip. There was a little bit of a boo boo that I kind of feel I need to correct right now. MyZip1, we actually included these guys right here. And that actually included the source code. So you really don't need any of that because we were baking it right out of the program, which is, well, what we're gonna do for this video. So if you wanna use the external library, you just get rid of that. And you're just gonna use the headers and it runs. Whoops. Wow, can't even get the right program going. And that is how you would externally link to it right there. What we're gonna cover in this tutorial is, well, you guys did this. So I'm gonna fix that error for this guy. I'm glad I noticed that before I published it, everybody been like, what is going on here? All right, so we're just gonna make a new command line application. Go into the source, or I'm sorry, the project file. It's been a long day. I've written this whole series in one day. And we are going to just grab the extra C++ files and the C files. So if you're gonna download the code off my website, this is the code I'm gonna publish. So MyZip1 will actually use the QAZip library and MyZip2 will have the software, or the source code burn right into the program. As you can see, there's the source code. So you will not need a DLL for this. Now, if we go out here, we see MyZip2. Ta-da. We will actually need to grab the Zlib library and paste that in there. And then we can just take the same program, copy that, paste it in here. So we have the exact same thing. Set this as our startup, give it a good build, make sure everything links correctly, which it should. Tick tock, tick tock, there we go. And once again, ta-da, it just works. Now, we know this works. Why am I doing a separate video on it? Well, I wanted to discuss when to do this and when not to do this. Reason being, MyZip1, now that I modified it, I'm terribly sorry, I apologize for that. Not only modified it, it actually does use the external DLL or system object. You would use this method when you want code reusability, meaning you're gonna have several programs that are gonna reuse this. You don't wanna have to remember the QUA header files and source files and all this other stuff. You just want it to work. You don't wanna clutter up your program. Now, you would use the all-in-one method here if you wanted all of your stuff nice and compact and you just wanted to distribute two files. Personally, I like to distribute as many files as I can just to clog up people's hard drives. I'm just kidding. This method is better, in my opinion, where you're actually distributing QAZip and LibZ and your program simply because if there's a modification to QAZip, like if you find a bug or if the author releases a bug fix, you can just distribute that S.O. rather than rebuilding your whole app. That's the beauty of it. Now, if you wanted to do a static build, you could actually do it this way, the number two way that we're talking about today, MyZip2, and you would just need to distribute MyZip2 in the Zlib library. Whew, that's a mouthful. So, questions, comments, concerns, let me know. I'm gonna zip this whole directory up and throw it up on my website that way you have exactly everything you're seeing right here on my screen. Be sure to visit my website, www.voidrealms.com. It's been an adventure. I apologize for that mixup. Once again, the updated one will be on my website. If you just see sources main, that means you're using the library. If you see sources and all this stuff, that means you're using the actual QAZip in your program and you do not need to include the library. That's all, thanks.