codeblocks

ASP.NET Using If statement with Container in a list view

In my ListView I want to use a property of the Container in an if statement on the aspx page as shown below. But I'm getting a "The name 'Container' does not exist in the current context" error. Can I not the Container in an if statement? <ItemTemplate> <tr> <td> <% if (EDIT_INDEX == (((ListViewItem)C...

expected asm or __attribute__ before CRenderContext

Hi all, I am developing a small app under Linux using the CodeBlocks IDE. I have defined a class with the following code: class CRenderContext { public: /*instance methods*/ CRenderContext() : m_iWidth(0), m_iHeight(0), m_iX(0), m_iY(0), m_bFullScreen(false), m_bShowPointer(false)...

C++ - Undefined reference to a class recently created !

Hi, I just created this new class : //------------------------------------------------------------------------------ #ifndef MULTITHREADEDVECTOR_H #define MULTITHREADEDVECTOR_H //------------------------------------------------------------------------------ #include <vector> #include <GL/GLFW.h> //--------------------------------------...

Boost library setup for Codeblocks

How to use boost libraries with Codeblocks(Windows) ? What i need to do after downloading the library from boost site ? Any idea, suggestions, pointers ? ...

Using WTL with Codeblocks

I want to try WTL, but problem is i can't use Visual Studio for this. So i've codeblocks on my side. Is there any way i can use WTL with codeblocks ? I mean configuration/settings that i need to do for this ? is it possible to use WTL with codeblocks? Just to clear first, i tried google for this. No satisfactory success. So asking t...

Provide program arguments when debugging with Code::Blocks

I cant seem to work out how to add program arguments to the launch command for the codeblocks debugger. Any one know how to do this? ...

Code::Blocks not being able to find standard library headers?

I recently switched from Bloodshed to Code::Blocks. I wrote a simple input/output program to get a feel for it, and when I tried to compile it I got errors for all of the headers I had included, saying that there was no such directory. I took a look at the file and saw that the file was saved as a C file rather than a C++ file, how do I...

MinGW compile for MS DOS

Hi all! I'm using Code::Blocks with MinGW to write my C++ applications in Windows XP. Now I want to compile my code to run under an MS DOS environment, so I can put it on my DOS formatted floppy disc. Can anyone help me? Thanks in advance. P.S. I don't mean the Command Prompt, but really the good old MS DOS Operating System. ...

exec() bytecode with arbitrary locals?

Suppose I want to execute code, for example value += 5 inside a namespace of my own (so the result is essentially mydict['value'] += 5). There's a function exec(), but I have to pass a string there: exec('value += 5', mydict) and passing statements as strings seems strange (e.g. it's not colorized that way). Can it be done...

Code::Blocks invalid compiler problem

i have installed successfully codeblock on my pc but when i try to run "hello world" or even another code, i get this messege of bluild log "name-Debug uses an invalid compiler. Skipping... nothing to be done" so please help me! ...

Code::Blocks Problem - Can't break file format after uninstalling Visual C++ Express

I decided to try Visual C++ Express and didn't like it so I went back to Code::Blocks. However, when I went to run a program in Code::Blocks I noticed that all of my files were saved under the format VCExpress.cpp.9.0. I deleted all of the files and went to where I have all of them uploaded to re-download them. However, they keep being s...

mingw32-make : "Input line too long" issue

We have a Makefile which runs on a Windows 2003 machine and we are using mingw32-make for it. Since the Makefile has many include paths, it exceeds the buffer size of 8K that the cmd can handle [Ref - http://support.microsoft.com/kb/830473/EN-US/due to which the compilation results in "input line too long" issue. I wanted to know the fo...

How do I successfully use VIM as an external editor for Code::Blocks?

Hi, I really like Code::Blocks for its build system and step through debugging abilities - ie I really enjoy using wrappers to gcc/gdb more than using them from Makefiles or the command line. The problem is, I'm so brain damaged (or spoilt, some might say) by years of VIM use that I cannot edit in a standard Windows text editor. So, I ...

Makefile and .Mak File + CodeBlocks and VStudio

Hey guys, I am a little new to the whole makefile concept so I have some questions regarding it. I am creating a project using CodeBlocks in linux, I used a tool called cbp2mak to create a .make file out of the CodeBlocks project (if anyone knows a better tool please let me know). Now i'm not sure what the difference is between .mak an...

Embeded code blocks in masterpage and page

Well I'm some what baffled! 'Simple problem' I have parts of my master page that I want to render differently depending on whether or not a ContentPlaceHolder is empty. So: I have a master page that as some code like: <% if (ContentPlaceHolder1.HasControls()) {%> <div id="LittleDiv"> <% } else { %> <div id="BigDiv"> <% } %> ...

I'm starting my C++ learning, using CodeBlocks and windows, what compiler should I use?

I'm under the impression certain compilers only work for making windows applications. ...

problem debugging with Code::Blocks on Ubuntu using gdb

Hi! I just started programming C++, first in ms Visual c++, then in Code::Blocks. The problem is that on my computer, running Ubuntu, Code::Blocks "out of the box" does not debug, even the default "hello world", it just skips all breakpoints and finishes the program. I have a virtualized Windows machine using Sun's VirtualBox and the ...

Trouble with codeblocks installation on Ubuntu 9.10

I installed Code::Blocks on Ubuntu 9.10, but when I start it from terminal, it shows the following error: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference What is wrong with it? It seems to me I have installed all necessary...

Codeblocks on fedora 9 : Cannot build the C project

I have a simple C console application named Test. But when I build, it says Test - Debug uses a invalid compiler Nothing to do What is the error? The test.cbp(project file) contents are as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <CodeBlocks_project_file> <FileVersion major="1" minor="6" /> <Pr...

Resolving "'hi' is not recognized as internal or external command..." error using C++ with codeblocks on Windows Vista?

I am learning C++ in school now. Currently using C++ with codeblocks on my windows vista laptop. I noticed whenever I try to use functions from imported classes from the Clibrary I get an error in the console. " 'hi' is not recgonized as internal or external command, operable command or batch file " My code looks like this ... #includ...