C++ :: Installing SDL Extensions To CodeBlocks

Aug 30, 2013

how to use SDL just today, installed the standard SDL library on the compiler. But when i got to the point where I needed to install the SDL image extension library I thought I had everything correct but when I tried running a program using it I got errors. The non-extension SDL apps work just fine but when I try using SDL_image functions in my code I get problems, although when I begin typing the function the name shows up and i do not get issues with the .h, I feel its a link issue because I get errors such as:

ld.exe||cannot find -lSDL_image|
ld.exe||cannot find -lSDL_image|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 0 seconds) ===|

I'm confident I have my /includes installed correctly. Also I was unable to find the 1.2 version for the Img extension so i reluctantly went ahead with 2.0 if that is perhaps causing issues.

View 1 Replies


ADVERTISEMENT

C# :: Installing A Windows Service From Application?

Mar 28, 2014

I have a Windows desktop application with 2 projects. The main project, and a simple windows service project. I have written the service and the service installer. I have added code to my main window to start the service, but I can't figure out how to install the service when the application runs for the first time, or is installed. Ideally I would like the service to be installed when the application is installed, I'm just not sure how to do that.

View 1 Replies View Related

C++ :: Installing And Using Libraries (And Including Dependencies With Binaries)

Mar 4, 2013

I've worked a lot in Java and Perl and now I'm learning C++ and working on a simple e-reader (let's not get into why I'm not just using Kindle or other existing ones). This is for me and a number of friends.

At first my project will be on OS X, then Windows and Linux, and I hope to eventually use it on Android and iOS. I know that the last two will require separate GUIs, but I'm hoping the rest of the code will port easily.

Here's the problem:

I'm using Poppler to read and display PDF files. I started installing it on my iMac and it needs FontConfig, which is turning out to be a difficult install. I would not want to walk others through this or make them have to install Poppler and FontConfig (and any other libraries I find both need).

I thought I could just compile my final binaries using "-static" but I've been reading about how some libraries can't be statically linked or compiled.

Also, since I want to eventually port this to 4 other OSes (and apparently Poppler can work on those target OSes), I don't want to do something now or depend on something that will make it hard or impossible to port to other OSes later.

With that in mind, here are my questions:

1) Why is it some libraries cannot be compiled statically? How do I know if I'm dealing with one of those libraries?

2) Am I right that I could compile this program statically, and the resulting binary would include code from Poppler and FontConfig and other libraries would be included in the resulting executable binary?

3) What do I need to watch for so I can tell if using a particular library will be a problem when I need to port my program to a new OS? (Assuming, of course, that searching shows that library will compile or has been ported to that OS.)

View 7 Replies View Related

C++ :: How To Make A Program That Opens Unknown Files Extensions

Apr 6, 2013

Okay, so I think I have just passed the intermediate line in my skill of c++ and my question is how do I make a program that opens unknown files extensions. for example like .plr. Because I see a bunch of files for game modifications like that, that was a good reason I started c++ too.

View 4 Replies View Related

Visual C++ :: Windows Explorer - Open Files With Different Extensions For Viewing Purposes Only

Feb 16, 2013

I have an application that Opens files with different extensions for viewing purposes only. I use MFC with Multi-Document template.

When I go to Windows Explorer in Windows 7 and right-click on Libraries - Documents, and scroll down to New, Explorer shows multiple links for creating new files with these different extensions.

My application does not create New documents. It just opens them for viewing purposes. In fact, I have disabled the New portion of the mainframe window.

My code includes:
EnableShellOpen();
RegisterShellFileTypes(TRUE);

I am at a loss as to what portion of my code would have placed these links into Windows Explorer!

Is there any way to prevent them from being created in the first place?

View 4 Replies View Related

C/C++ :: How To Use TBB With Codeblocks

Sep 28, 2014

I am trying to use Intel's Threading building blocks with Code::Blocks (On windows 7) I am really struggling with getting this to actually compile. It just throws various errors depending on what I try.

View 14 Replies View Related

C++ :: Input From A File In CodeBlocks

Oct 23, 2014

I'm using Codeblocks 13.12 in Windows. I want to compile and run c++ files with the console inputs are automatically extracted from a file. More importantly, I do not want to change the code to read files. I just have written codes to read them from the console. Any change in settings?

View 3 Replies View Related

C/C++ :: Snakes And Ladders Codeblocks Error

May 5, 2014

My error on code blocks is fatal error no such file found in iostream, I don't understand this error!!

#include <iostream>
#include <cstdlib>
#include <string>
#include <ctime>
#include <fstream>
#include <vector>
#include <sstream>
#include <iterator>
int Random(int random) {
return (rand() % random) + 1;

[Code] .....

View 7 Replies View Related

C++ :: Running Certain Code In Codeblocks Sets Off AVG?

Jul 3, 2012

I've recently started to learn C++ and I'm using codeblocks as my IDE, but I keep getting problems with AVG free edition picking up random pieces of code as Trojans ?! I've put an example of some code that sets it off below, and the error message I get. Is there anyway I can set AVG not to trigger with any codeblocks coding I've done? I guess I could tell AVG not to trigger for that folder, if that's even possible?

Code:

#include <iostream>
using namespace std;
class MyClass{
public:
void coolSaying(){
cout << "BUST A MOVE!!" << endl;

[Code] ....

Error I get:

File name: h:DesktopC++ projectsclasses and objects 1 inDebugclasses and projects 1.exe
Threat name: Trojan horse Agent3.BMSZ
Detected on open.

View 14 Replies View Related

C++ :: Codeblocks Not Finding Libs - Permission Denied

Oct 18, 2013

I upgraded to code::blocks and now I have the errors while trying to install sfml and sdl (to use in a dual project): Codeblocks libs:Permission Denied

Codeblocks libs is a custom folder I created and copied libs from the lib folders to because I got the same errors in the actual folders and thought it might be because of their location. What should I do?

View 19 Replies View Related

C/C++ :: CodeBlocks Random Math Quiz Generator

Nov 26, 2014

The user will be allowed to pick:

-the number of problems they want to do
-the type of problem (addition, subtraction, multiplication, division)
-the range of numbers for the problems (like 0 to 9, -100 to 100, etc.) [random numbers in the range]

Your program will then display the given number of problems and get the answer from the user. It will tell the user it they are correct or not. If they are incorrect, it will print the correct answer.

After the given number of problems are displayed, the program will give the user the final number correct and percentage correct. The user will be asked if they want to go again. If so, you will reprompt the user for all the information and run again.

I came up with code thinking I was going in the right direction but it doesn't work correctly at all. We have to use functions. My main issue is how do i call variables from another function so all of the functions work together. I repeat I don't understand parameters and calling functions. here's the code:

#include <iostream>
#include <cstdlib>
#include <iomanip>
using namespace std;
int get_user_range(int &x, int &y);
int get_random_number ();

[Code]......

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved