Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Cant build simple hello world dll
mighter:
Hi all, first of all sorry if this is in the wrong section. It was a choice between this forums or the help one :shock: . I followed all instructions on this: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows tutorial. Then i proceeded to do everything on this: http://wiki.codeblocks.org/index.php/Creating_a_simple_%22Hello_World%22_plugin tutorial. I get one error during build, "ld.exe cannot find -lcodeblocks." I looked through linking options etc. and couldn't find anything. Any help is appreciated.
Also, there is no src\sdk\include but there is a src\include so i used that. And i dont get any errors except for the above, just thought that might have something to do with the problem. Thanks in advance.
P.S. im running vista 32 bit.
Seronis:
--- Quote ---Developer forums (C::B DEVELOPMENT STRICTLY!)
--- End quote ---
--- Quote ---Plugins development
Anything related to modifying or writing new plugins should be discussed here.
--- End quote ---
That said...
Personally with as annoying as vista is, id just use the vista specific installer and not build codeblocks itself from source until you get the binary release working without issues. At least then when you try to build codeblocks you will know your environment is properly set up.
MortenMacFly:
--- Quote from: mighter on May 13, 2008, 07:04:53 am ---"ld.exe cannot find -lcodeblocks."
--- End quote ---
With 08.02 we haven't shipped an SDK explicitly. But all you need to do it to link against the C::B DLL shipping with the binary and using the source code of the 08.02 source code provided for download. BTW: You need to link against the wx DLL, too most likely.
--- Quote from: mighter on May 13, 2008, 07:04:53 am ---Also, there is no src\sdk\include but there is a src\include so i used that.
--- End quote ---
That's fully correct. The article is "a bit" outdated. :oops:
--- Quote from: Seronis on May 13, 2008, 02:46:58 pm ---Personally with as annoying as vista is,
--- End quote ---
Seronis: Please, no flaming - I personally like Vista a lot. It's way better than XP IMHO - so you see, everyone has it's own experience. Flaming leads to nowhere.
--- Quote from: Seronis on May 13, 2008, 02:46:58 pm ---id just use the vista specific installer
--- End quote ---
Seronis: Don't know how this will help a lot... He is trying to create a C::B plugin! Not just run C::B.
--- Quote from: Seronis on May 13, 2008, 02:46:58 pm ---At least then when you try to build codeblocks you will know your environment is properly set up.
--- End quote ---
Probably that's another possibility: You can surely compile C::B from the sources yourself. You'll get all required libs in return plus a brand-new C::B which has already improved a lot again compared to 08.02... Your choice. ;-)
mighter:
First of all thanks for the help, Before I attempted to make a C::B plugin I already had a working version of C::B, then i downloaded the sources and built everything. So i actually have 2 C::B on my hardrive, both working.
--- Quote ---With 08.02 we haven't shipped an SDK explicitly. But all you need to do it to link against the C::B DLL shipping with the binary and using the source code of the 08.02 source code provided for download. BTW: You need to link against the wx DLL, too most likely.
--- End quote ---
I tried linking with libcodeblocks.a and libwxscintilla.a and also put the directory it's in in the search directory, But it still doesn't work. Is that what you meant to link against?
Seronis:
--- Quote from: MortenMacFly on May 13, 2008, 03:23:13 pm ---Seronis: Please, no flaming - I personally like Vista a lot. It's way better than XP IMHO - so you see, everyone has it's own experience. Flaming leads to nowhere.
--- End quote ---
Not meant to be a flame really. Vista has many well known 'issues'. I cant stand using it, but in its favor a majority of its issues is from programs written for XP being used on it. You just need to use software written specifically for Vista compatibility and you're good.
Specifically I personally was having a lot of linking errors until i got the right updates to gcc. Which makes vista annoying to me, but is technically a gcc issue (that has been resolved if you have the right packages). MY problems with vista looked similar to the OPs problems.
Sorry for the misunderstanding.
--- Quote from: MortenMacFly on May 13, 2008, 03:23:13 pm ---
--- Quote from: Seronis on May 13, 2008, 02:46:58 pm ---id just use the vista specific installer
--- End quote ---
Seronis: Don't know how this will help a lot... He is trying to create a C::B plugin! Not just run C::B.
--- Quote from: Seronis on May 13, 2008, 02:46:58 pm ---At least then when you try to build codeblocks you will know your environment is properly set up.
--- End quote ---
Probably that's another possibility: You can surely compile C::B from the sources yourself. You'll get all required libs in return plus a brand-new C::B which has already improved a lot again compared to 08.02... Your choice. ;-)
--- End quote ---
Again I was referring to what the problem appeared to me at first read. That he might have had the non vista friendly version of gcc causing the link issues. Nothing more =-)
Navigation
[0] Message Index
[#] Next page
Go to full version