View Single Post
Old 06-19-2005, 09:20 AM   #1 (permalink)
Zyko
Registered User
 
Join Date: Jun 2005
Posts: 1
Zyko is on a distinguished road
Invalid conversion

Hi, first post ..

I'm having a problem, my compiler doesnt want to convert a `char' to a `char*'.

The Code:
Code:
#include <iostream>
#include "md5.h"

int main () {

char* bokisar="abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ0123456789_-";

int k=0;
while(k < 62)
{
char *hash= bokisar[k];
std::cout << "MD5 Key of '"<< hash << "' = " << MD5String(hash)	<< "\n";
k++;

} 
	
	return 0;
}
That is giving me a warning on the line containing: char *hash = bokisar[k];

It compiles but returns exited with status 10 (SIGBUS).

OS: OSX Tiger.


I actually have no idea what to do and MD5String must have a pointed char..
Zyko is offline   Reply With Quote