![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Unverified User
Join Date: Jun 2005
Location: NJ
Posts: 23
Rep Power: 0
![]() |
hey folks,i havent been doing that much programming over the last few months but ive gotten back into working on some stuff recently. basically the issue i'm having is that im getting a program to compile even though it shouldnt (at least i think).
i have a libgenericwipe project that contains a .cpp,.h,and .dev file in it. this libgenericwipe has not even been compiled to generate any static link libraries. in a separate folder i have another project for the executable im making.. this project includes the .h file for libgenericwipe. in the linker section for this project, i am linking to nothing. the program compiles without any errors or linker errors and i am able to call the genericwipe function even without linking to anything.. my guess is im missing something very obvious or im just being stupid. here are the contents of my project files.. killer.cpp #include <windows.h>
#include "c:\\c0ldshadow\\libgenericwipe\\genericwipe.h"
int main()
{
genericWipe("asd");
}genericwipe.h #ifndef GENERICWIPE_H #define GENERICWIPE_H #include "genericwipe.cpp" bool genericWipe(const char *); #endif genericwipe.cpp #include <windows.h>
#include <stdio.h>
#include <string.h>
bool genericWipe(const char *what)
{
//note i removed the code here since its not important for this issue
return true;
}maybe its just me but i swear that this program shouldnt compile.. i thought that the genericwipe project would need to be compiled into a static link library and then the killer.cpp would need to add this static link library file to the linker... i have done none of this, yet the code compiles and works fine... like i said before, i havent been coding in a while so maybe im just doing something blatantly stupid or whatever.. please note that this is issue no emergency but any advice would be great.. regards,--c0ldshadow
__________________
DeepTide The way is shut. It was made by those who are dead and the Dead keep it. The way is shut. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|